This statement will always be False, I think you want "or": ansible_os_family == "Debian" and ansible_distribution == "Ubuntu"
On Wed, Oct 29, 2014 at 10:49 AM, Vikas Kumar <[email protected]> wrote: > Hello Everyone, > > I am new to Ansible world. I am just trying to create a small playbook to > install apache2 on Debian 7.4 and Ubuntu14.04 servers. > I have defined few variables in two different yml files - Ubuntu.yml and > Debian.yml > > My problem is that ansible is ignoring everything is Ubuntu.yml and keep > reading variables from Debian.yml. I commented out everything in > Ubuntu.yml, still my playbook ran fine as Ansible took values from > Debian.yml. > > This is a part of my playbook. > - include: Ubuntu.yml > when: ansible_os_family == "Debian" and ansible_distribution == "Ubuntu" > > > - include: Debian.yml > when: ansible_os_family == "Debian" and ansible_distribution == "Debian" > > > Am I missing anything ? > > Regards, > Vikas > > -- > 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, send an > email to [email protected]. > To post to this group, send email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/ansible-project/b09f67a0-0381-4bd2-b26a-e0dc48e266dc%40googlegroups.com > <https://groups.google.com/d/msgid/ansible-project/b09f67a0-0381-4bd2-b26a-e0dc48e266dc%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- 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, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CA%2BnsWgyY8RRLd1%2BeTDi11%2BMm%3D%3DoQ7%3DmXk_7L596npBkfY%3Ds7QQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
