In Ansible Tower, Why is My scan_facts.yml Playbook Failing with an Undefined Variable?

Solution Verified - Updated -

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.

Current Customers and Partners

Log in for full access

Log In