Make safe variable duplications for rename (#5093)

* Make safe variable duplications to controller

* Back out some changes to be smarter

* Update test to new vars
This commit is contained in:
Alan Rominger
2021-06-18 14:14:07 -04:00
committed by Shane McDonald
parent 95e796a88a
commit a8083296e6
3 changed files with 9 additions and 1 deletions

View File

@@ -176,6 +176,7 @@ class InventoryModule(BaseInventoryPlugin):
for key in ('version', 'ansible_version'):
server_data[key] = config_data.get(key, 'unknown')
self.inventory.set_variable('all', 'tower_metadata', server_data)
self.inventory.set_variable('all', 'controller_metadata', server_data)
# Clean up the inventory.
self.inventory.reconcile_inventory()