templier-ansible/plays/nginx.yml
Yohann D'ANELLO 8c4684a450
[nginx] setup nginx
Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
2021-05-25 09:48:58 +02:00

15 lines
528 B
YAML
Executable File

#!/usr/bin/env ansible-playbook
---
- hosts: nginx,!reverseproxy
vars:
nginx: "{{ glob_nginx | default({}) | combine(service_nginx | default({})) | combine(loc_nginx | default({})) }}"
roles:
- nginx
- hosts: reverseproxy
vars:
nginx: "{{ glob_nginx | default({}) | combine(service_nginx | default({})) | combine(loc_nginx | default({})) }}"
reverseproxy: "{{ glob_reverseproxy | default({}) | combine(service_reverseproxy | default({})) | combine(loc_reverseproxy | default({})) }}"
roles:
- nginx