Ensure NGINX deploy. on public-rev.-prox. hosts before certbot role runs

This commit is contained in:
June 2023-08-03 04:15:03 +02:00 committed by julian
parent 48f9a2f901
commit 3b3c628492
2 changed files with 9 additions and 1 deletions

View file

@ -49,6 +49,9 @@ all:
keycloak: keycloak:
wiki: wiki:
engelsystem: engelsystem:
public_reverse_proxy_hosts:
hosts:
public-reverse-proxy:
cert_hosts: cert_hosts:
hosts: hosts:
certbot_hosts: certbot_hosts:

View file

@ -57,6 +57,11 @@
roles: roles:
- cert - cert
- name: Ensure NGINX deployment on nginx_hosts, which are also public_reverse_proxy_hosts, before certbot role runs
hosts: nginx_hosts:&public_reverse_proxy_hosts
roles:
- nginx
- name: Ensure certbot and certificate deployment on certbot_hosts - name: Ensure certbot and certificate deployment on certbot_hosts
hosts: certbot_hosts hosts: certbot_hosts
roles: roles:
@ -68,7 +73,7 @@
- docker_compose - docker_compose
- name: Ensure NGINX deployment on nginx_hosts - name: Ensure NGINX deployment on nginx_hosts
hosts: nginx_hosts hosts: nginx_hosts:!public_reverse_proxy_hosts
roles: roles:
- nginx - nginx