95e702e388
I think it's a good idea to only run/include a role if the remote host is running Ubuntu OS - doesn't hurt to do an extra check even though the README clearly assumes so. Signed-off-by: James Oguya <oguyajames@gmail.com>
19 lines
525 B
YAML
19 lines
525 B
YAML
---
|
|
# file: web.yml
|
|
|
|
- name: Configure web servers
|
|
hosts: web
|
|
user: provisioning
|
|
sudo: yes
|
|
roles:
|
|
- { role: common, when: ansible_distribution == 'Ubuntu' }
|
|
- { role: mariadb, when: ansible_distribution == 'Ubuntu' }
|
|
- { role: nginx, when: ansible_distribution == 'Ubuntu' }
|
|
- { role: php5-fpm, when: ansible_distribution == 'Ubuntu' }
|
|
- { role: munin, when: ansible_distribution == 'Ubuntu' }
|
|
vars_files:
|
|
- vars/ipsets.yml
|
|
- "vars/{{ ansible_distribution }}.yml"
|
|
|
|
# vim: set sw=2 ts=2:
|