Hi Andrew,

On 08.11.23 22:40, andrew bezella wrote:
Package: ansible-core
Version: 2.14.3-1
Severity: normal

Dear Maintainer,

i installed ansible-core and facter 4.3.0-2 in bookworm.  when testing
i found that the facts from facter were not being included by the
setup module:

% ansible -b localhost -m ansible.builtin.setup -a 'filter=facter_*'
[WARNING]: No inventory was parsed, only implicit localhost is available
localhost | SUCCESS => {
     "ansible_facts": {},
     "changed": false
}

this issue has appeared upstream and was resolved by:
setup module, retry facter to handle --puppet errors by bcoca · Pull Request 
#80645 · ansible/ansible · GitHub
https://github.com/ansible/ansible/pull/80645

Thank you for the bug report! I've been able to reproduce the bug and will prepare an upload for sid and bookworm shortly.


i was eventually able to build an updated version of bookworm's
ansible-core .deb including commit id 4b0d014.  this task was made
more difficult by the current FTBFS status of ansible-core but the
patch allowed ansible.builtin.setup to include facts from facter:

Can you elaborate please? AFAICS ansible-core builds fine in stable and sid.


% ansible -b localhost -m ansible.builtin.setup -a 'filter=facter_*'
[WARNING]: No inventory was parsed, only implicit localhost is available
localhost | SUCCESS => {
     "ansible_facts": {
         "facter_disks": {
             "sda": {
[...]
         "facter_timezone": "UTC",
         "facter_virtual": "physical"
     },
     "changed": false
}

thanks in advance for addressing this.

        andy


Greetings,
Lee

Reply via email to