In Ansible Tower, Why is My scan_facts.yml Playbook Failing with an Undefined Variable?
Issue
When running the scan_facts.yml playbook provided by Red Hat with Fact Caching on, random hosts will fail with the error:
FAILED! => {"failed": true, "msg": "The conditional check 'ansible_os_family != \"Windows\"' failed. The error was: error while evaluating conditional (ansible_os_family != \"Windows\"): 'ansible_os_family' is undefined
Environment
- Ansible Tower 3.2.0-3.2.2
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
