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:
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
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
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