Undefined variable error in Ansible check mode when referencing ansible_facts without credentials
When running an Ansible playbook in check mode (--check) without supplying remote credentials, the intent is to validate syntax and logic without making any changes. However, if the playbook contains Jinja2 templates or variable expressions that reference facts such as {{ ansible_facts['distribution'] }}, check mode still attempts to evaluate those expressio