Authored by chunhua.zhang

Merge branch 'master' of git.yoho.cn:ops/yoho-ansible-roles

... ... @@ -51,5 +51,5 @@ zookeeper:
- 10.66.202.2
# for test
db_test_read: 19.9.9.85
db_test_read: 19.9.9.111
db_test_write: 19.9.9.111
... ...
... ... @@ -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'])
... ...