mirror of
https://github.com/MatteZ02/infra.git
synced 2024-11-22 18:50:20 +00:00
hostnames
This commit is contained in:
parent
06b582cc61
commit
bb01720512
@ -13,7 +13,7 @@
|
||||
loop_var: "path"
|
||||
vars:
|
||||
paths:
|
||||
http://divarinet.northeurope.cloudapp.azure.com:
|
||||
divarinet.northeurope.cloudapp.azure.com:
|
||||
- github-MetroHege-MPP-Frontend
|
||||
- github-metrohege-MPP-Backend
|
||||
tags:
|
||||
@ -43,7 +43,7 @@
|
||||
tag: latest
|
||||
register: deployerTask101
|
||||
when:
|
||||
- ansible_facts.fqdn == "http://divarinet.northeurope.cloudapp.azure.com"
|
||||
- ansible_facts.fqdn == "divarinet.northeurope.cloudapp.azure.com"
|
||||
|
||||
- name: "Deployer - MariaDB - Run Container"
|
||||
containers.podman.podman_container:
|
||||
@ -60,7 +60,7 @@
|
||||
MYSQL_ROOT_PASSWORD: "no password?"
|
||||
register: deployerTask102
|
||||
when:
|
||||
- ansible_facts.fqdn == "http://divarinet.northeurope.cloudapp.azure.com"
|
||||
- ansible_facts.fqdn == "divarinet.northeurope.cloudapp.azure.com"
|
||||
- (deployerTask101 is defined and deployerTask101.changed) or deployerTask101 is undefined
|
||||
tags:
|
||||
- mariadb
|
||||
@ -71,7 +71,7 @@
|
||||
port: "3306"
|
||||
delay: 10
|
||||
when:
|
||||
- ansible_facts.fqdn == "http://divarinet.northeurope.cloudapp.azure.com"
|
||||
- ansible_facts.fqdn == "divarinet.northeurope.cloudapp.azure.com"
|
||||
- (deployerTask102 is defined and deployerTask102.changed) or deployerTask102 is undefined
|
||||
tags:
|
||||
- mariadb
|
||||
@ -84,7 +84,7 @@
|
||||
ignore_errors: yes
|
||||
changed_when: task.stdout.find("This installation of MariaDB is already upgraded") == -1
|
||||
when:
|
||||
- ansible_facts.fqdn == "http://divarinet.northeurope.cloudapp.azure.com"
|
||||
- ansible_facts.fqdn == "divarinet.northeurope.cloudapp.azure.com"
|
||||
- (deployerTask102 is defined and deployerTask102.changed) or deployerTask102 is undefined
|
||||
tags:
|
||||
- mariadb
|
||||
@ -103,7 +103,7 @@
|
||||
vars:
|
||||
ansible_python_interpreter: "/opt/ansible/bin/python3"
|
||||
when:
|
||||
- ansible_facts.fqdn == "http://divarinet.northeurope.cloudapp.azure.com"
|
||||
- ansible_facts.fqdn == "divarinet.northeurope.cloudapp.azure.com"
|
||||
- (deployerTask102 is defined and deployerTask102.changed) or deployerTask102 is undefined
|
||||
tags:
|
||||
- mariadb
|
||||
@ -119,7 +119,7 @@
|
||||
vars:
|
||||
ansible_python_interpreter: "/opt/ansible/bin/python3"
|
||||
when:
|
||||
- ansible_facts.fqdn == "http://divarinet.northeurope.cloudapp.azure.com"
|
||||
- ansible_facts.fqdn == "divarinet.northeurope.cloudapp.azure.com"
|
||||
- (deployerTask102 is defined and deployerTask102.changed) or deployerTask102 is undefined
|
||||
tags:
|
||||
- mariadb
|
||||
@ -131,7 +131,7 @@
|
||||
version: master
|
||||
register: deployerTask521
|
||||
when:
|
||||
- ansible_facts.fqdn == "http://divarinet.northeurope.cloudapp.azure.com"
|
||||
- ansible_facts.fqdn == "divarinet.northeurope.cloudapp.azure.com"
|
||||
|
||||
- name: "Deployer - Backend - Build Image"
|
||||
containers.podman.podman_image:
|
||||
@ -147,7 +147,7 @@
|
||||
become_user: root
|
||||
register: deployerTask522
|
||||
when:
|
||||
- ansible_facts.fqdn == "http://divarinet.northeurope.cloudapp.azure.com"
|
||||
- ansible_facts.fqdn == "divarinet.northeurope.cloudapp.azure.com"
|
||||
- (deployerTask521 is defined and deployerTask521.changed) or deployerTask521 is undefined
|
||||
tags:
|
||||
- backend
|
||||
@ -164,7 +164,7 @@
|
||||
restart_policy: always
|
||||
command: "npm start"
|
||||
when:
|
||||
- ansible_facts.fqdn == "http://divarinet.northeurope.cloudapp.azure.com"
|
||||
- ansible_facts.fqdn == "divarinet.northeurope.cloudapp.azure.com"
|
||||
- deployerTask522 is defined
|
||||
- deployerTask522.changed
|
||||
tags:
|
||||
@ -177,7 +177,7 @@
|
||||
version: master
|
||||
register: deployerTask531
|
||||
when:
|
||||
- ansible_facts.fqdn == "http://divarinet.northeurope.cloudapp.azure.com"
|
||||
- ansible_facts.fqdn == "divarinet.northeurope.cloudapp.azure.com"
|
||||
|
||||
- name: "Deployer - Frontend - Build Image"
|
||||
containers.podman.podman_image:
|
||||
@ -193,7 +193,7 @@
|
||||
become_user: root
|
||||
register: deployerTask532
|
||||
when:
|
||||
- ansible_facts.fqdn == "http://divarinet.northeurope.cloudapp.azure.com"
|
||||
- ansible_facts.fqdn == "divarinet.northeurope.cloudapp.azure.com"
|
||||
- (deployerTask531 is defined and deployerTask531.changed) or deployerTask531 is undefined
|
||||
tags:
|
||||
- frontend
|
||||
@ -210,7 +210,7 @@
|
||||
restart_policy: always
|
||||
command: "npm start"
|
||||
when:
|
||||
- ansible_facts.fqdn == "http://divarinet.northeurope.cloudapp.azure.com"
|
||||
- ansible_facts.fqdn == "divarinet.northeurope.cloudapp.azure.com"
|
||||
- deployerTask532 is defined
|
||||
- deployerTask532.changed
|
||||
tags:
|
||||
|
@ -90,7 +90,7 @@
|
||||
virtualenv: /opt/ansible
|
||||
virtualenv_command: "python3 -m venv"
|
||||
when:
|
||||
- ansible_facts.fqdn == "http://divarinet.northeurope.cloudapp.azure.com"
|
||||
- ansible_facts.fqdn == "divarinet.northeurope.cloudapp.azure.com"
|
||||
tags:
|
||||
- certbot
|
||||
|
||||
@ -107,7 +107,7 @@
|
||||
label: "{{ binary }}"
|
||||
loop_var: "binary"
|
||||
when:
|
||||
- ansible_facts.fqdn == "http://divarinet.northeurope.cloudapp.azure.com"
|
||||
- ansible_facts.fqdn == "divarinet.northeurope.cloudapp.azure.com"
|
||||
tags:
|
||||
- certbot
|
||||
|
||||
@ -154,10 +154,10 @@
|
||||
name: Maintenance
|
||||
hour: "*/3"
|
||||
minute: "0"
|
||||
job: "/opt/ansible/bin/ansible-pull -U ssh://git@github.com/musix-org/ansible --accept-host-key --private-key ~/.ssh/id_rsa tasks.yml -t maintenance"
|
||||
job: "/opt/ansible/bin/ansible-pull -U ssh://git@github.com/MatteZ02/mpp-ansible --accept-host-key --private-key ~/.ssh/id_rsa tasks.yml -t maintenance"
|
||||
|
||||
- name: "Install - Schedule - Deployer"
|
||||
cron:
|
||||
name: Deployer
|
||||
minute: "*/5"
|
||||
job: "/opt/ansible/bin/ansible-pull -U ssh://git@github.com/musix-org/ansible --accept-host-key --private-key ~/.ssh/id_rsa tasks.yml -t deployer"
|
||||
job: "/opt/ansible/bin/ansible-pull -U ssh://git@github.com/MatteZ02/mpp-ansible --accept-host-key --private-key ~/.ssh/id_rsa tasks.yml -t deployer"
|
Loading…
Reference in New Issue
Block a user