Alan Orth
b4310cfc89
Sometimes we mean Ubuntu, other times we mean Debian family. Use ansible_os_family where we mean Debian family. Signed-off-by: Alan Orth <alan.orth@gmail.com>
19 lines
507 B
YAML
19 lines
507 B
YAML
---
|
|
# file: web.yml
|
|
|
|
- name: Configure web servers
|
|
hosts: web
|
|
user: provisioning
|
|
sudo: 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:
|