Bug #22279
closedForeman registers duplicates of host again and again on Ansible callback
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
Updated by Martin Angermeier over 6 years ago
- Related to Bug #24090: Ansible Callback Script generates duplicate Foreman Host entries added
Updated by Ondřej Pražák about 6 years ago
- Related to deleted (Bug #24090: Ansible Callback Script generates duplicate Foreman Host entries)
Updated by Ondřej Pražák about 6 years ago
- Has duplicate Bug #24090: Ansible Callback Script generates duplicate Foreman Host entries added
Updated by Ondřej Pražák about 6 years ago
- 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
Updated by The Foreman Bot about 6 years ago
- Status changed from Assigned to Ready For Testing
- Pull request https://github.com/theforeman/foreman_ansible/pull/214 added
Updated by Marek Hulán about 6 years ago
- Fixed in Releases foreman-ansible 2.3.0 added
Updated by Anonymous about 6 years ago
- Status changed from Ready For Testing to Closed
Applied in changeset foreman_ansible|d7c4fbf68d9ce387ce0a0cb039807514f225b144.