just use public_ip in creating gce temporary waitfor hosts (#1646)

* just use public_ip in creating gce temporary waitfor hosts

* Update create-gce.yml
This commit is contained in:
Matthew Mosesohn 2017-09-18 13:24:57 +01:00 committed by GitHub
parent aaa27d0a34
commit 975accbe1d

View file

@ -37,7 +37,7 @@
register: gce register: gce
- name: Add instances to host group - name: Add instances to host group
add_host: hostname={{item.public_ip}} groupname="waitfor_hosts" add_host: hostname={{item.public_ip}} groupname="waitfor_hosts"
with_items: '{{gce.instance_data}}' with_items: '{{gce.instance_data}}'
- name: Template the inventory - name: Template the inventory