Duplicate Hosts (w FQDN)

Problem:
Duplicate Hosts

Expected outcome:
No Duplicate Hosts

Foreman and Proxy versions:
Foreman 2.2.2
Foreman-Proxy 2.2.2

Foreman and Proxy plugin versions:
2.2.2

Distribution and version:
2.2.2

Other relevant data:

I have the ansible callback configured to capture our hosts in Foreman. Whenever I run a playbook, like for patching, I’m getting multiple duplicated hosts. Since this is still in the build process, I can delete all the hosts and start over. But I really need to understand where this is coming from so when we move to the next steps in our testing and eventually deploying to production, I wont see any duplicated hosts.

Thanks in advance for any help you can provide
Jim

Can you identify at what point it gets created? Is that Ansible report which creates the new record? Ansible facts? What exactly do you see associated with the new host? Are these just the reports?

@aruzicka any ideas?

1 Like

Izap,
Thanks for the reply. It seems the callback is creating the additional entries whenever we run an ansible job. There must be a configuration option somewhere that’s allowing this to happen. I just don’t know where to search, or if I found something what to change it to.

Here’s a snippet of what I’m taking about.

I don’t recall seeing anything like this before.

@jpurtell when you say “Whenever I run a playbook”, what exactly do you mean by that? How do you run it? By hand from the terminal or from foreman?

Its a separate server we use for ansible. But the callback is configured in the ansible.cfg so whenever you run a playbook or add-hoc command it sends facts back to foreman

I tried turning off this setting, but whenever we run ansible it throws a 500 error for each hosts