Re: [ansible-project] Re: include: "{{ ansible_os_family }}.yml" not working

2015-01-12 Thread Brian Coca
handlers are play level so if you define conflicting handlers in roles one of them gets overwritten. Brian Coca -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, se

[ansible-project] Re: include: "{{ ansible_os_family }}.yml" not working

2015-01-10 Thread Stefan Beke
If I may ask a related question, I'm using include / when for my tasks, but I noticed that when I do the same for handlers ( include / when ), it gets called only on first match. If 1st match is not matching my ansible_distribution from tasks, I have a problem. For instance in my task for OpenB

[ansible-project] Re: include: "{{ ansible_os_family }}.yml" not working

2015-01-09 Thread Matthew Macdonald-Wallace
FWIW, we have the following at the top of all of our tasks/main.yml: # include the distro-specific stuff - include: debian.yml when: ansible_distribution == 'Debian' or ansible_distribution == 'Ubuntu' - include: rhel.yml when: ansible_distribution == 'CentOS' or ansible_distribution == 'Red