How to make existing host to be managed by inventory source

Hi All,

We have a lot of inventories in production for different organizations.

We are planning to manage them using inventory source using the data from our CMDB.

We have written a script for that and it is working in development env.

The problem I have now is, that in production hosts are already present in the inventory.

So even if I set up inventory source on that inventory, the sync will not work on those already added hosts.

So is there any option to make sync understand that it should manage the existing hosts as well?

Regards,
Anil

Can you elaborate on your problem a little more? By default, hosts in the inventory that are NOT part of the inventory source will still remain in the inventory after sync.

In the inventory source page, there are “Overwrite” and “Overwrite variables” toggle buttons. If overwrite is checked, those extra hosts WILL be removed.

AWX Team

Hi

We have 10000+ plus servers added to inventory manually.

Now we need them to be managed through inventory source.

So if the host added manually is not found in the source, it should be removed. But it is not getting removed because those hosts are added manually.

So how can we make those hosts to be managed by the sync.

Regards
Anil