mirror of
https://github.com/MatteZ02/infra.git
synced 2024-11-23 02:51:32 +00:00
Deployer Tasks: Update
This commit is contained in:
parent
52166bc711
commit
df47f06308
@ -1,31 +1,11 @@
|
|||||||
---
|
---
|
||||||
- name: "Deployer - SSH - Generate Keypairs"
|
#- name: "Deployer - Certbot - Renew Certificates"
|
||||||
community.crypto.openssh_keypair:
|
# command: "certbot renew"
|
||||||
path: "/root/.ssh/keys/{{ path }}"
|
# register: task
|
||||||
type: rsa
|
# changed_when: task.stdout.find("No renewals were attempted.") == -1
|
||||||
comment: "{{ ansible_facts.fqdn }}"
|
# tags:
|
||||||
owner: root
|
# - certbot
|
||||||
group: root
|
# - tls
|
||||||
mode: '0600'
|
|
||||||
loop: "{{ paths[ansible_facts.fqdn] }}"
|
|
||||||
loop_control:
|
|
||||||
label: "{{ path }}"
|
|
||||||
loop_var: "path"
|
|
||||||
vars:
|
|
||||||
paths:
|
|
||||||
divari.northeurope.cloudapp.azure.com:
|
|
||||||
- github-metrohege-mpp-frontend
|
|
||||||
- github-metrohege-mpp-backend
|
|
||||||
tags:
|
|
||||||
- ssh
|
|
||||||
|
|
||||||
- name: "Deployer - Certbot - Renew Certificates"
|
|
||||||
command: "certbot renew"
|
|
||||||
register: task
|
|
||||||
changed_when: task.stdout.find("No renewals were attempted.") == -1
|
|
||||||
tags:
|
|
||||||
- certbot
|
|
||||||
- tls
|
|
||||||
|
|
||||||
# - name: "Deployer - Certbot - Copy Certificates"
|
# - name: "Deployer - Certbot - Copy Certificates"
|
||||||
# copy:
|
# copy:
|
||||||
@ -71,17 +51,17 @@
|
|||||||
tags:
|
tags:
|
||||||
- mariadb
|
- mariadb
|
||||||
|
|
||||||
# - name: "Deployer - MariaDB - Upgrade"
|
- name: "Deployer - MariaDB - Upgrade"
|
||||||
# containers.podman.podman_container_exec:
|
containers.podman.podman_container_exec:
|
||||||
# container: "mariadb"
|
container: "mariadb"
|
||||||
# command: "mariadb-upgrade --host=127.0.0.1 --user=root --password=y9ZmTmUKLaRrZ4SA"
|
command: "mariadb-upgrade --host=127.0.0.1 --user=root --password=y9ZmTmUKLaRrZ4SA"
|
||||||
# register: task
|
register: task
|
||||||
# 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:
|
||||||
# - (deployerTask102 is defined and deployerTask102.changed) or deployerTask102 is undefined
|
- (deployerTask102 is defined and deployerTask102.changed) or deployerTask102 is undefined
|
||||||
# tags:
|
tags:
|
||||||
# - mariadb
|
- mariadb
|
||||||
|
|
||||||
- name: "Deployer - MariaDB - Create Users"
|
- name: "Deployer - MariaDB - Create Users"
|
||||||
mysql_user:
|
mysql_user:
|
||||||
@ -169,7 +149,7 @@
|
|||||||
|
|
||||||
- name: "Deployer - Backend - Git Operations"
|
- name: "Deployer - Backend - Git Operations"
|
||||||
git:
|
git:
|
||||||
repo: git@github.com:MetroHege/MPP-Backend.git
|
repo: https://github.com/MetroHege/MPP-Backend.git
|
||||||
dest: /root/backend
|
dest: /root/backend
|
||||||
version: main
|
version: main
|
||||||
register: deployerTask521
|
register: deployerTask521
|
||||||
@ -212,7 +192,7 @@
|
|||||||
|
|
||||||
- name: "Deployer - Frontend - Git Operations"
|
- name: "Deployer - Frontend - Git Operations"
|
||||||
git:
|
git:
|
||||||
repo: git@github.com:MetroHege/MPP-Frontend.git
|
repo: https://github.com/MetroHege/MPP-Frontend.git
|
||||||
dest: /root/frontend
|
dest: /root/frontend
|
||||||
version: main
|
version: main
|
||||||
register: deployerTask531
|
register: deployerTask531
|
||||||
|
Loading…
Reference in New Issue
Block a user