ansible/playbooks/nginx.yml

27 lines
790 B
YAML
Raw Normal View History

2020-05-03 18:45:07 +02:00
#!/usr/bin/env ansible-playbook
2019-07-22 10:32:01 +02:00
---
- 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({})) }}'
2021-11-27 20:02:08 +01:00
update_motd:
nginx: >-
Le reverse-proxy NGINX est déployé (/etc/nginx).
2019-07-22 19:14:43 +02:00
roles:
2020-05-09 12:54:38 +02:00
- certbot
- nginx
2021-11-27 20:02:08 +01:00
- update_motd
- hosts: nginx,!reverseproxy
vars:
certbot: '{{ loc_certbot | default(glob_certbot | default([])) }}'
nginx: '{{ glob_nginx | default({}) | combine(loc_nginx | default({})) }}'
2021-11-27 20:02:08 +01:00
update_motd:
nginx: >-
NGINX avec certbot est déployé (/etc/nginx).
roles:
- certbot
- nginx
2021-11-27 20:02:08 +01:00
- update_motd