one or more %'s in /etc/ansible/facts.d value causes ansible_local to fail to load without error #82717
Open
1 task done
Labels
affects_2.14
bug
This issue/PR relates to a bug.
has_pr
This issue has an associated PR.
module
This issue/PR relates to a module.
Summary
If a value in any local facts contains one or more "%" in the value, all ansilbe_local facts fails to populate. However, Ansible does not throw an error.
I'm unable to find this documented anywhere as expected behavior.
Issue Type
Bug Report
Component Name
local facts
Ansible Version
Configuration
OS / Environment
RHEL9
Steps to Reproduce
/etc/ansible/facts.d/good.fact
to cause ansible to populateansible_local
ansible localhost -m ansible.builtin.setup -a 'filter=ansible_local'
noticeansible_local["good"]["good fact"]
is populated/etc/ansible/facts.d/bad.fact
ansible localhost -m ansible.builtin.setup -a 'filter=ansible_local'
and notice no more ansible_local factsExpected Results
before bad fact:
after bad fact:
Actual Results
before bad fact:
after bad fact:
Code of Conduct
The text was updated successfully, but these errors were encountered: