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

Fixed calculate etc hosts

parent c9fd0b1a
No related branches found
No related tags found
1 merge request!75Fixed calculate etc hosts
......@@ -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