update hostname

This commit is contained in:
Matte 2024-04-18 14:49:27 +03:00
parent d0b68b079d
commit 797ba4f562
2 changed files with 15 additions and 15 deletions

View File

@ -13,7 +13,7 @@
loop_var: "path" loop_var: "path"
vars: vars:
paths: paths:
divarinet.northeurope.cloudapp.azure.com: divari.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 == "divarinet.northeurope.cloudapp.azure.com" - ansible_facts.fqdn == "divari.northeurope.cloudapp.azure.com"
- name: "Deployer - MariaDB - Run Container" - name: "Deployer - MariaDB - Run Container"
containers.podman.podman_container: containers.podman.podman_container:
@ -59,7 +59,7 @@
MYSQL_ROOT_PASSWORD: "y9ZmTmUKLaRrZ4SA" MYSQL_ROOT_PASSWORD: "y9ZmTmUKLaRrZ4SA"
register: deployerTask102 register: deployerTask102
when: when:
- ansible_facts.fqdn == "divarinet.northeurope.cloudapp.azure.com" - ansible_facts.fqdn == "divari.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
@ -70,7 +70,7 @@
port: "3306" port: "3306"
delay: 10 delay: 10
when: when:
- ansible_facts.fqdn == "divarinet.northeurope.cloudapp.azure.com" - ansible_facts.fqdn == "divari.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
@ -83,7 +83,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 == "divarinet.northeurope.cloudapp.azure.com" # - ansible_facts.fqdn == "divari.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
@ -102,7 +102,7 @@
vars: vars:
ansible_python_interpreter: "/opt/ansible/bin/python3" ansible_python_interpreter: "/opt/ansible/bin/python3"
when: when:
- ansible_facts.fqdn == "divarinet.northeurope.cloudapp.azure.com" - ansible_facts.fqdn == "divari.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
@ -118,7 +118,7 @@
vars: vars:
ansible_python_interpreter: "/opt/ansible/bin/python3" ansible_python_interpreter: "/opt/ansible/bin/python3"
when: when:
- ansible_facts.fqdn == "divarinet.northeurope.cloudapp.azure.com" - ansible_facts.fqdn == "divari.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
@ -130,7 +130,7 @@
version: master version: master
register: deployerTask521 register: deployerTask521
when: when:
- ansible_facts.fqdn == "divarinet.northeurope.cloudapp.azure.com" - ansible_facts.fqdn == "divari.northeurope.cloudapp.azure.com"
- name: "Deployer - Backend - Build Image" - name: "Deployer - Backend - Build Image"
containers.podman.podman_image: containers.podman.podman_image:
@ -146,7 +146,7 @@
become_user: root become_user: root
register: deployerTask522 register: deployerTask522
when: when:
- ansible_facts.fqdn == "divarinet.northeurope.cloudapp.azure.com" - ansible_facts.fqdn == "divari.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
@ -163,7 +163,7 @@
restart_policy: always restart_policy: always
command: "npm start" command: "npm start"
when: when:
- ansible_facts.fqdn == "divarinet.northeurope.cloudapp.azure.com" - ansible_facts.fqdn == "divari.northeurope.cloudapp.azure.com"
- deployerTask522 is defined - deployerTask522 is defined
- deployerTask522.changed - deployerTask522.changed
tags: tags:
@ -176,7 +176,7 @@
version: master version: master
register: deployerTask531 register: deployerTask531
when: when:
- ansible_facts.fqdn == "divarinet.northeurope.cloudapp.azure.com" - ansible_facts.fqdn == "divari.northeurope.cloudapp.azure.com"
- name: "Deployer - Frontend - Build Image" - name: "Deployer - Frontend - Build Image"
containers.podman.podman_image: containers.podman.podman_image:
@ -192,7 +192,7 @@
become_user: root become_user: root
register: deployerTask532 register: deployerTask532
when: when:
- ansible_facts.fqdn == "divarinet.northeurope.cloudapp.azure.com" - ansible_facts.fqdn == "divari.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
@ -209,7 +209,7 @@
restart_policy: always restart_policy: always
command: "npm run build" command: "npm run build"
when: when:
- ansible_facts.fqdn == "divarinet.northeurope.cloudapp.azure.com" - ansible_facts.fqdn == "divari.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 == "divarinet.northeurope.cloudapp.azure.com" - ansible_facts.fqdn == "divari.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 == "divarinet.northeurope.cloudapp.azure.com" - ansible_facts.fqdn == "divari.northeurope.cloudapp.azure.com"
tags: tags:
- certbot - certbot