Project

General

Profile

Actions

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.

Status:
Closed
Priority:
Normal
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

Run the following command twice:
ansible -m setup localhost

See that localhost is created twice in Hosts -> All Hosts

Actions #1

Updated by Ohad Levy about 8 years ago

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.

Actions #2

Updated by The Foreman Bot about 8 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman_ansible/pull/55 added
Actions #3

Updated by Anonymous about 8 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100
Actions #4

Updated by Daniel Lobato Garcia about 8 years ago

  • Target version set to 1.4.3
Actions #5

Updated by Suresh Thirugnanasambandan over 7 years ago

Verified now and it works great. Thanks for the fix.

Actions

Also available in: Atom PDF