restrict_facts_namespace is not respected #31330
Labels
affects_2.5
This issue/PR affects Ansible v2.5
bug
This issue/PR relates to a bug.
needs_info
This issue requires further information. Please answer any outstanding questions.
needs_template
This issue/PR has an incomplete description. Please fill in the proposed template correctly.
support:core
This issue/PR relates to code supported by the Ansible Engineering Team.
ISSUE TYPE
ANSIBLE VERSION
CONFIGURATION
only defaults
OS / ENVIRONMENT
Running Arch Linux, provisioning Ubuntu 16.04.
SUMMARY
ansible_facts
is undefined even whenrestrict_facts_namespace
is set toTrue
.STEPS TO REPRODUCE
playbook.yml
with the following contents:ansible.cfg
with the following contents:ansible-playbook playbook.yml -vvv
EXPECTED RESULTS
ansible_facts
should be printed containing all facts gathered on the localhost.ACTUAL RESULTS
Ansible fails with:
Changing the
debug
task todebug: msg="{{ansible_facts}}"
results in:Setting
restrict_facts_namespace
to False changes nothing.The text was updated successfully, but these errors were encountered: