Bug #16873
closed
Duplicate hosts are created when running the ansible setup module more than once
Added by Suresh Thirugnanasambandan about 8 years ago.
Updated over 6 years ago.
Description
Run the following command twice:
ansible -m setup localhost
See that localhost is created twice in Hosts -> All Hosts
I would also say that localhost should not appear in the host list, it should actually be swapped with the host fqdn (HOSTNAMe, or ansible_fqdn, facter_fqdn etc).
I personally found facter_fqdn to be the most reliable with actual fqdn.
- Status changed from New to Ready For Testing
- Pull request https://github.com/theforeman/foreman_ansible/pull/55 added
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
- Target version set to 1.4.3
Verified now and it works great. Thanks for the fix.
Also available in: Atom
PDF