hostnames

This commit is contained in:
Matte 2024-04-09 14:50:38 +03:00
parent 06b582cc61
commit bb01720512
2 changed files with 17 additions and 17 deletions

View File

@ -13,7 +13,7 @@
loop_var: "path" loop_var: "path"
vars: vars:
paths: paths:
http://divarinet.northeurope.cloudapp.azure.com: divarinet.northeurope.cloudapp.azure.com:
- github-MetroHege-MPP-Frontend - github-MetroHege-MPP-Frontend
- github-metrohege-MPP-Backend - github-metrohege-MPP-Backend
tags: tags:
@ -43,7 +43,7 @@
tag: latest tag: latest
register: deployerTask101 register: deployerTask101
when: when:
- ansible_facts.fqdn == "http://divarinet.northeurope.cloudapp.azure.com" - ansible_facts.fqdn == "divarinet.northeurope.cloudapp.azure.com"
- name: "Deployer - MariaDB - Run Container" - name: "Deployer - MariaDB - Run Container"
containers.podman.podman_container: containers.podman.podman_container:
@ -60,7 +60,7 @@
MYSQL_ROOT_PASSWORD: "no password?" MYSQL_ROOT_PASSWORD: "no password?"
register: deployerTask102 register: deployerTask102
when: 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 - (deployerTask101 is defined and deployerTask101.changed) or deployerTask101 is undefined
tags: tags:
- mariadb - mariadb
@ -71,7 +71,7 @@
port: "3306" port: "3306"
delay: 10 delay: 10
when: 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 - (deployerTask102 is defined and deployerTask102.changed) or deployerTask102 is undefined
tags: tags:
- mariadb - mariadb
@ -84,7 +84,7 @@
ignore_errors: yes ignore_errors: yes
changed_when: task.stdout.find("This installation of MariaDB is already upgraded") == -1 changed_when: task.stdout.find("This installation of MariaDB is already upgraded") == -1
when: 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 - (deployerTask102 is defined and deployerTask102.changed) or deployerTask102 is undefined
tags: tags:
- mariadb - mariadb
@ -103,7 +103,7 @@
vars: vars:
ansible_python_interpreter: "/opt/ansible/bin/python3" ansible_python_interpreter: "/opt/ansible/bin/python3"
when: 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 - (deployerTask102 is defined and deployerTask102.changed) or deployerTask102 is undefined
tags: tags:
- mariadb - mariadb
@ -119,7 +119,7 @@
vars: vars:
ansible_python_interpreter: "/opt/ansible/bin/python3" ansible_python_interpreter: "/opt/ansible/bin/python3"
when: 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 - (deployerTask102 is defined and deployerTask102.changed) or deployerTask102 is undefined
tags: tags:
- mariadb - mariadb
@ -131,7 +131,7 @@
version: master version: master
register: deployerTask521 register: deployerTask521
when: when:
- ansible_facts.fqdn == "http://divarinet.northeurope.cloudapp.azure.com" - ansible_facts.fqdn == "divarinet.northeurope.cloudapp.azure.com"
- name: "Deployer - Backend - Build Image" - name: "Deployer - Backend - Build Image"
containers.podman.podman_image: containers.podman.podman_image:
@ -147,7 +147,7 @@
become_user: root become_user: root
register: deployerTask522 register: deployerTask522
when: 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 - (deployerTask521 is defined and deployerTask521.changed) or deployerTask521 is undefined
tags: tags:
- backend - backend
@ -164,7 +164,7 @@
restart_policy: always restart_policy: always
command: "npm start" command: "npm start"
when: when:
- ansible_facts.fqdn == "http://divarinet.northeurope.cloudapp.azure.com" - ansible_facts.fqdn == "divarinet.northeurope.cloudapp.azure.com"
- deployerTask522 is defined - deployerTask522 is defined
- deployerTask522.changed - deployerTask522.changed
tags: tags:
@ -177,7 +177,7 @@
version: master version: master
register: deployerTask531 register: deployerTask531
when: when:
- ansible_facts.fqdn == "http://divarinet.northeurope.cloudapp.azure.com" - ansible_facts.fqdn == "divarinet.northeurope.cloudapp.azure.com"
- name: "Deployer - Frontend - Build Image" - name: "Deployer - Frontend - Build Image"
containers.podman.podman_image: containers.podman.podman_image:
@ -193,7 +193,7 @@
become_user: root become_user: root
register: deployerTask532 register: deployerTask532
when: 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 - (deployerTask531 is defined and deployerTask531.changed) or deployerTask531 is undefined
tags: tags:
- frontend - frontend
@ -210,7 +210,7 @@
restart_policy: always restart_policy: always
command: "npm start" command: "npm start"
when: when:
- ansible_facts.fqdn == "http://divarinet.northeurope.cloudapp.azure.com" - ansible_facts.fqdn == "divarinet.northeurope.cloudapp.azure.com"
- deployerTask532 is defined - deployerTask532 is defined
- deployerTask532.changed - deployerTask532.changed
tags: tags:

View File

@ -90,7 +90,7 @@
virtualenv: /opt/ansible virtualenv: /opt/ansible
virtualenv_command: "python3 -m venv" virtualenv_command: "python3 -m venv"
when: when:
- ansible_facts.fqdn == "http://divarinet.northeurope.cloudapp.azure.com" - ansible_facts.fqdn == "divarinet.northeurope.cloudapp.azure.com"
tags: tags:
- certbot - certbot
@ -107,7 +107,7 @@
label: "{{ binary }}" label: "{{ binary }}"
loop_var: "binary" loop_var: "binary"
when: when:
- ansible_facts.fqdn == "http://divarinet.northeurope.cloudapp.azure.com" - ansible_facts.fqdn == "divarinet.northeurope.cloudapp.azure.com"
tags: tags:
- certbot - certbot
@ -154,10 +154,10 @@
name: Maintenance name: Maintenance
hour: "*/3" hour: "*/3"
minute: "0" 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" - name: "Install - Schedule - Deployer"
cron: cron:
name: Deployer name: Deployer
minute: "*/5" 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"