26 lines
790 B
YAML
Executable file
26 lines
790 B
YAML
Executable file
#!/usr/bin/env ansible-playbook
|
|
---
|
|
- hosts: reverseproxy
|
|
vars:
|
|
certbot: '{{ loc_certbot | default(glob_certbot | default([])) }}'
|
|
nginx: '{{ glob_nginx | default({}) | combine(loc_nginx | default({})) }}'
|
|
reverseproxy: '{{ glob_reverseproxy | default({}) | combine(loc_reverseproxy | default({})) }}'
|
|
update_motd:
|
|
nginx: >-
|
|
Le reverse-proxy NGINX est déployé (/etc/nginx).
|
|
roles:
|
|
- certbot
|
|
- nginx
|
|
- update_motd
|
|
|
|
- hosts: nginx,!reverseproxy
|
|
vars:
|
|
certbot: '{{ loc_certbot | default(glob_certbot | default([])) }}'
|
|
nginx: '{{ glob_nginx | default({}) | combine(loc_nginx | default({})) }}'
|
|
update_motd:
|
|
nginx: >-
|
|
NGINX avec certbot est déployé (/etc/nginx).
|
|
roles:
|
|
- certbot
|
|
- nginx
|
|
- update_motd
|