Re: [ansible-project] Random undefined variables (facts) since ansible 2.0 upgrade

2016-02-12 Thread Michael Baydoun
Spoke too soon, turning off fact caching fixed or worked around the problem. Opened a bug report https://github.com/ansible/ansible/issues/14456 >> -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and s

Re: [ansible-project] Random undefined variables (facts) since ansible 2.0 upgrade

2016-02-11 Thread Michael Baydoun
Turning off fact caching completely did not improve the situation. On Thursday, February 11, 2016 at 12:32:02 PM UTC-5, Michael Baydoun wrote: > > We do, and have been looking at that. The facts for all hosts are getting > gathered/refreshed during the first included playbook in site.yml, and th

Re: [ansible-project] Random undefined variables (facts) since ansible 2.0 upgrade

2016-02-11 Thread Michael Baydoun
We do, and have been looking at that. The facts for all hosts are getting gathered/refreshed during the first included playbook in site.yml, and the cache is not supposed to be expiring for 3 hours, with our entire run taking less than 2 hours. The cache files are present on disk, etcetera.

Re: [ansible-project] Random undefined variables (facts) since ansible 2.0 upgrade

2016-02-11 Thread 'J Hawkesworth' via Ansible Project
Do you have fact gathering set to smart in your ansible.cfg? On Thursday, 11 February 2016 13:28:38 UTC, Michael Baydoun wrote: > > In our case, the facts are being gathered, and used other plays included > in site.yml, but later on in a subsequent play the a fact that was defined > previously i

Re: [ansible-project] Random undefined variables (facts) since ansible 2.0 upgrade

2016-02-11 Thread Michael Baydoun
In our case, the facts are being gathered, and used other plays included in site.yml, but later on in a subsequent play the a fact that was defined previously is suddenly undefined, on some random hosts, but not all. It's happening on windows and linux hosts. On Thursday, February 11, 2016 at

Re: [ansible-project] Random undefined variables (facts) since ansible 2.0 upgrade

2016-02-10 Thread Alex Leonhardt
I had something like it, not on Windows though,at the time the problem was that I set it not to gather_facts, when I actually tried to use a few facts later on. May not be the same but may be worth checking.. Alex On Thursday, 11 February 2016, Michael Baydoun wrote: > This is still occurring d

[ansible-project] Random undefined variables (facts) since ansible 2.0 upgrade

2016-02-03 Thread Michael Baydoun
Some ansible playbook runs will work on most hosts, but 1-3 will fail with an undefined variable that is an ansible fact. Run it a second time and it works. Example: fatal: [wdv-sitefinity1]: FAILED! => {"failed": true, "msg": "ERROR! The conditional check 'ansible_os_family == 'Windows'' fail