ansible-personal/web.yml
Alan Orth e30e4d4b1e
Import OS-specific vars in tasks instead of play
Something seems to have happened as of Ansible 2.4.0.0 where this no
longer works. I suspect it is related to the major changes to static
and dynamic imports that landed around this same time.

We make sure that this tasks always runs by using the special tag of
the same name.
2017-11-01 01:21:48 +02:00

18 lines
474 B
YAML

---
# file: web.yml
- name: Configure web servers
hosts: web
remote_user: provisioning
become: yes
roles:
- { role: common, when: ansible_os_family == 'Debian' }
- { role: mariadb, when: ansible_os_family == 'Debian' }
- { role: nginx, when: ansible_os_family == 'Debian' }
- { role: php-fpm, when: ansible_os_family == 'Debian' }
- { role: munin, when: ansible_os_family == 'Debian' }
vars_files:
- vars/ipsets.yml
# vim: set sw=2 ts=2: