I think this happens when you don't use the fqdn in ansible hosts file. 

As soon as I started using the the correct fqdn I only got one host and no 
duplicates.

On Wednesday, August 23, 2017 at 11:45:31 AM UTC+2, mobios wrote:
>
> Hello,
>
> I have a problem with duplicate hosts in Foreman.
>
>
> Info: My setup
> Foreman = 1.15.2
> Foreman_ansible = 1.4.5
> ansible = 2.0.0.2
>
>
>
> I use the callback plugin foreman_callback.py
>  as described here -> 
> https://theforeman.org/plugins/foreman_ansible/0.x/index.html.
>
> I have configured my foreman and ansible.
>
> Foreman-Settings:
> Create new host when Facts are uploaded = Yes
> Create new host when reports is uploaded = Yes
>
>
> If i run on my ansible server:
>
> ansible all  -m setup
>
> all is fine the hosts were created correctly in Foreman.
> But if i run the ansible command again the host were duplicated.
>
> Please see attachment how is look like.
>
>
>
> Has anyone a idea why the foreman_callback.py duplicated the Hosts in 
> Foreman?
>
> Regards
> mobios
>  
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Foreman users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to