#5901 batcave01 duplicated in ansible inventory file group "infracore"
Closed: Fixed Opened by aurelie.

Good morning (in London),

I was wondering if the duplicated entry below in the ansible inventory file on batcave01 is a mistake or is there for a reason?

[infracore]
batcave01.phx2.fedoraproject.org
log01.phx2.fedoraproject.org
noc01.phx2.fedoraproject.org
noc02.fedoraproject.org
data-analysis01.phx2.fedoraproject.org
batcave01.phx2.fedoraproject.org

I guess it's not really an issue but still, I'm just double checking (and trying to understand your Infrastructure Ansible installation). :)

Cheers

Regards,
Aurelie


Duplicated items in an ansible inventory are expected in a large setup. Think of the inventory file as /etc/groups. Each group a system belongs will require that host to be listed multiple times in the 'groups' file. While sometimes you can clean this up with groups of groups entries,. it can be hard reading.

Does that help explain this?

Hi smooge,

Thanks for the explanation. That makes sense and I was expecting excatly that but this entry is duplicated in the same [infracore] inventory group. I thought that was a potential issue.

Cheers,

Aurelie

And I completely missed what you were pointing out. It won't cause a problem but should be removed. Good catch!

Hi smooge,

Thanks for confirming this.

Cheers

Metadata Update from @smooge:
- Issue assigned to smooge

I have removed the duplicate and will close out this thicket. Thank you.

Metadata Update from @kevin:
- Issue close_status updated to: Fixed
- Issue status updated to: Closed (was: Open)

Metadata