ansible-personal/web.yml
Alan Orth ee0621fc20
web.yml: sudo -> become for Ansible 2.0
Some language changed in Ansible 2.0.

Signed-off-by: Alan Orth <alan.orth@gmail.com>
2016-01-12 22:55:58 +02:00

19 lines
509 B
YAML

---
# file: web.yml
- name: Configure web servers
hosts: web
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: php5-fpm, when: ansible_os_family == 'Debian' }
- { role: munin, when: ansible_os_family == 'Debian' }
vars_files:
- vars/ipsets.yml
- "vars/{{ ansible_os_family }}.yml"
# vim: set sw=2 ts=2: