I have a custom inventory script that pulls data from my CMDB into awx. I’ve noticed that even if a variable for a host or a group is removed in CMDB (and verified when running the script manually), the variable is not removed from the host or group in AWX. Is there a way to control this behavior? I would like the inventory script to be authoritative and anything that exists in AWX which isn’t returned in the inventory script should be removed.
Inventory Sources have an option called “Overwrite vars” that will fully replace all vars on an inventory item at sync time.
Yeah just found that…duh. Sorry.