mirror of
https://github.com/MatteZ02/infra.git
synced 2024-11-12 22:00:19 +00:00
Update
This commit is contained in:
parent
f93d850e09
commit
52166bc711
@ -42,8 +42,6 @@
|
|||||||
name: docker.io/mariadb
|
name: docker.io/mariadb
|
||||||
tag: latest
|
tag: latest
|
||||||
register: deployerTask101
|
register: deployerTask101
|
||||||
when:
|
|
||||||
- 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 +57,6 @@
|
|||||||
MYSQL_ROOT_PASSWORD: "y9ZmTmUKLaRrZ4SA"
|
MYSQL_ROOT_PASSWORD: "y9ZmTmUKLaRrZ4SA"
|
||||||
register: deployerTask102
|
register: deployerTask102
|
||||||
when:
|
when:
|
||||||
- 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 +67,6 @@
|
|||||||
port: "3306"
|
port: "3306"
|
||||||
delay: 10
|
delay: 10
|
||||||
when:
|
when:
|
||||||
- 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 +79,6 @@
|
|||||||
# 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 == "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
|
||||||
@ -100,7 +95,6 @@
|
|||||||
vars:
|
vars:
|
||||||
ansible_python_interpreter: "/opt/ansible/bin/python3"
|
ansible_python_interpreter: "/opt/ansible/bin/python3"
|
||||||
when:
|
when:
|
||||||
- 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
|
||||||
@ -114,7 +108,6 @@
|
|||||||
vars:
|
vars:
|
||||||
ansible_python_interpreter: "/opt/ansible/bin/python3"
|
ansible_python_interpreter: "/opt/ansible/bin/python3"
|
||||||
when:
|
when:
|
||||||
- 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
|
||||||
@ -180,8 +173,6 @@
|
|||||||
dest: /root/backend
|
dest: /root/backend
|
||||||
version: main
|
version: main
|
||||||
register: deployerTask521
|
register: deployerTask521
|
||||||
when:
|
|
||||||
- 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:
|
||||||
@ -197,7 +188,6 @@
|
|||||||
become_user: root
|
become_user: root
|
||||||
register: deployerTask522
|
register: deployerTask522
|
||||||
when:
|
when:
|
||||||
- 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
|
||||||
@ -215,7 +205,6 @@
|
|||||||
restart_policy: always
|
restart_policy: always
|
||||||
command: "npm start"
|
command: "npm start"
|
||||||
when:
|
when:
|
||||||
- ansible_facts.fqdn == "divari.northeurope.cloudapp.azure.com"
|
|
||||||
- deployerTask522 is defined
|
- deployerTask522 is defined
|
||||||
- deployerTask522.changed
|
- deployerTask522.changed
|
||||||
tags:
|
tags:
|
||||||
@ -227,8 +216,6 @@
|
|||||||
dest: /root/frontend
|
dest: /root/frontend
|
||||||
version: main
|
version: main
|
||||||
register: deployerTask531
|
register: deployerTask531
|
||||||
when:
|
|
||||||
- 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:
|
||||||
@ -244,7 +231,6 @@
|
|||||||
become_user: root
|
become_user: root
|
||||||
register: deployerTask532
|
register: deployerTask532
|
||||||
when:
|
when:
|
||||||
- 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
|
||||||
@ -262,7 +248,6 @@
|
|||||||
restart_policy: always
|
restart_policy: always
|
||||||
command: "npm run build"
|
command: "npm run build"
|
||||||
when:
|
when:
|
||||||
- ansible_facts.fqdn == "divari.northeurope.cloudapp.azure.com"
|
|
||||||
- deployerTask532 is defined
|
- deployerTask532 is defined
|
||||||
- deployerTask532.changed
|
- deployerTask532.changed
|
||||||
tags:
|
tags:
|
||||||
|
@ -89,8 +89,6 @@
|
|||||||
extra_args: --upgrade
|
extra_args: --upgrade
|
||||||
virtualenv: /opt/ansible
|
virtualenv: /opt/ansible
|
||||||
virtualenv_command: "python3 -m venv"
|
virtualenv_command: "python3 -m venv"
|
||||||
when:
|
|
||||||
- ansible_facts.fqdn == "divari.northeurope.cloudapp.azure.com"
|
|
||||||
tags:
|
tags:
|
||||||
- certbot
|
- certbot
|
||||||
|
|
||||||
@ -106,8 +104,6 @@
|
|||||||
loop_control:
|
loop_control:
|
||||||
label: "{{ binary }}"
|
label: "{{ binary }}"
|
||||||
loop_var: "binary"
|
loop_var: "binary"
|
||||||
when:
|
|
||||||
- ansible_facts.fqdn == "divari.northeurope.cloudapp.azure.com"
|
|
||||||
tags:
|
tags:
|
||||||
- certbot
|
- certbot
|
||||||
|
|
||||||
@ -117,11 +113,10 @@
|
|||||||
# changed_when: task.stdout.find("Certificate not yet due for renewal; no action taken.") == -1
|
# changed_when: task.stdout.find("Certificate not yet due for renewal; no action taken.") == -1
|
||||||
# vars:
|
# vars:
|
||||||
# cert:
|
# cert:
|
||||||
# name: musix
|
# name: mpp
|
||||||
# email: musixdiscordbot@gmail.com
|
# email: matias.martikainen@metropolia.fi
|
||||||
# domains:
|
# domains:
|
||||||
# - musix-org.com
|
# - "{{ ansible_facts.fqdn }}"
|
||||||
# - "*.musix-org.com"
|
|
||||||
# tags:
|
# tags:
|
||||||
# - certbot
|
# - certbot
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user