Re: [ansible-project] Re: ansible 2.2.1.0 does not evaluate variable lazily

2017-02-23 Thread Steven Truong
I now have this two yml files and ansible-playbook works. Cross my fingers Steven. --- - name: Gathering the local facts from tags hosts: all gather_facts: yes roles: - facts - include: base_test.yml base-test.yml: --- - include: base_centos6.yml when:

Re: [ansible-project] Re: ansible 2.2.1.0 does not evaluate variable lazily

2017-02-23 Thread Steven Truong
Thanks. Brian On Thursday, February 23, 2017 at 11:54:15 AM UTC-8, Brian Coca wrote: > > it does evaluate variables lazily, the problem is that play includes > run at compile time, so the variable is needed before the fact > gathering happens. > > > -- > Brian Coca > -- You

Re: [ansible-project] Re: ansible 2.2.1.0 does not evaluate variable lazily

2017-02-23 Thread Brian Coca
it does evaluate variables lazily, the problem is that play includes run at compile time, so the variable is needed before the fact gathering happens. -- Brian Coca -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe

[ansible-project] Re: ansible 2.2.1.0 does not evaluate variable lazily

2017-02-23 Thread Steven Truong
And when I did this: --- - name: Gathering the local facts from tags hosts: all gather_facts: yes roles: - facts - include: base_centos7.yml when: ansible_distribution_major_version == '7' I