Bug #22279
closed
Foreman registers duplicates of host again and again on Ansible callback
Added by Romans Krjukovs almost 7 years ago.
Updated about 6 years ago.
Description
Hi,
I have a fresh installation of Foreman 1.16 on a clean host.
Ansible 2.4.2 is installed on the same host and foreman callback is configured.
When i execute some ansible playbook, target host is registered in Foreman (which is expected).
When i execute the same or another playbook targeting same host, another (duplicate) host record with the same hostname
is registered in Foreman. Again and again. Each execution of Ansible playbook produces another
host duplicate in Foreman.
Pls, advise.
Thank You!
Regards
/Romans
Files
- Related to Bug #24090: Ansible Callback Script generates duplicate Foreman Host entries added
- Related to deleted (Bug #24090: Ansible Callback Script generates duplicate Foreman Host entries)
- Has duplicate Bug #24090: Ansible Callback Script generates duplicate Foreman Host entries added
- Assignee set to Ondřej Pražák
The temporary workaround is to use host FQDN.
Steps to reproduce:
1) Have a host that Foreman does not know about (my-host.example.com)
2) Set up Foreman plugin callback for Ansible to send facts and reports to Foreman
3) Run Ansible on the host using partially qualified host name: ansible -m setup my-host -i myhost,
4) observe the duplicate hosts
- Status changed from New to Assigned
- Status changed from Assigned to Ready For Testing
- Pull request https://github.com/theforeman/foreman_ansible/pull/214 added
- Fixed in Releases foreman-ansible 2.3.0 added
- Status changed from Ready For Testing to Closed
Also available in: Atom
PDF