[MacPorts] #63263: py-ansible-base 2.10.11: Path replacement breaks custom facts
MacPorts
noreply at macports.org
Fri Dec 3 15:29:43 UTC 2021
#63263: py-ansible-base 2.10.11: Path replacement breaks custom facts
------------------------------+-------------------------
Reporter: F30 | Owner: adfernandes
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version:
Resolution: | Keywords:
Port: py-ansible-base |
------------------------------+-------------------------
Comment (by mpallante):
Replying to [comment:3 adfernandes]:
> Anyone else have thoughts about this?
This changes in Ansible configuration is simply wrong because it breaks
the usual Ansible behaviour.
As you can see from its documentation
(https://docs.ansible.com/ansible/latest/collections/ansible/builtin/setup_module.html),
the `setup` module expects default value of `fact_path` to be
`/etc/ansible/facts.d` and must be a directory on the **remote** host in
which Ansible go and search files and scripts that enrich the variables
with information that need to be collected on the remote host. So,
everything is referred to the remote host.
I just wasted a full day trying to solve an issue with a playbook that
configures a backup server, which at the end I tracked down to be due to
this misconfigured path.
I also couldn't use the workarounds cited by [comment:1 F30] because our
playbook uses directly the `setup` module or indirectly by importing 3rd
parts roles which in turn use the `setup` module.
I can also confirm py-ansible-core 2.11.6 has the same wrong behaviour.
--
Ticket URL: <https://trac.macports.org/ticket/63263#comment:5>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list