Skip to content
Snippets Groups Projects
Commit 1ffae562 authored by Jupiter Hu's avatar Jupiter Hu
Browse files

Fixed calculate etc hosts

Former-commit-id: ae00fb80
parent 492f7d68
No related branches found
No related tags found
No related merge requests found
......@@ -32,6 +32,13 @@ for h in hosts.keys():
string=string+" %s"%(name)
print string
for h in hosts.keys():
if d['hostvars'].has_key(h):
string="%s"%(d['hostvars'][h]['ansible_default_ipv4']['address'])
for name in hosts[h]:
string=string+" %s"%(name)
print string
for h in hosts.keys():
if d['hostvars'].has_key(h):
if d['hostvars'][h].has_key('ansible_tun0'):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment