summaryrefslogtreecommitdiffstats
path: root/playbooks/provisioning/openstack
diff options
context:
space:
mode:
Diffstat (limited to 'playbooks/provisioning/openstack')
-rwxr-xr-xplaybooks/provisioning/openstack/sample-inventory/inventory.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/playbooks/provisioning/openstack/sample-inventory/inventory.py b/playbooks/provisioning/openstack/sample-inventory/inventory.py
index 4949deac2..6a1b74b3d 100755
--- a/playbooks/provisioning/openstack/sample-inventory/inventory.py
+++ b/playbooks/provisioning/openstack/sample-inventory/inventory.py
@@ -72,8 +72,9 @@ if __name__ == '__main__':
'ansible_host': ssh_ip_address
}
- if server.public_v4:
- vars['public_v4'] = server.public_v4
+ public_v4 = server.public_v4 or server.private_v4
+ if public_v4:
+ vars['public_v4'] = public_v4
# TODO(shadower): what about multiple networks?
if server.private_v4:
vars['private_v4'] = server.private_v4