...
|
...
|
@@ -46,7 +46,7 @@ def ansible_tower_process(down_host, alarm): |
|
|
INVENTORY_ENV = {6: "az1", 5: "az2", 4: "az3"}
|
|
|
keys = []
|
|
|
values = []
|
|
|
for inventory in [ 4]:
|
|
|
for inventory in [ 6, 5, 4]:
|
|
|
extra_var = {}
|
|
|
r = requests.get(ansible_url + "/inventories/%i/" %inventory, auth=(ansible_user, ansible_password))
|
|
|
inventory_vars = json.loads( r.json()['variables'])
|
...
|
...
|
|