diff options
Diffstat (limited to 'cloud/google/gce.py')
-rw-r--r-- | cloud/google/gce.py | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/cloud/google/gce.py b/cloud/google/gce.py index 9c18b71f..7bf342bd 100644 --- a/cloud/google/gce.py +++ b/cloud/google/gce.py @@ -246,11 +246,18 @@ EXAMPLES = ''' register: gce - name: Save host data - add_host: hostname={{ item.public_ip }} groupname=gce_instances_ips + add_host: + hostname: "{{ item.public_ip }}" + groupname: gce_instances_ips with_items: "{{ gce.instance_data }}" - name: Wait for SSH for instances - wait_for: delay=1 host={{ item.public_ip }} port=22 state=started timeout=30 + wait_for: + delay: 1 + host: "{{ item.public_ip }}" + port: 22 + state: started + timeout: 30 with_items: "{{ gce.instance_data }}" - name: Configure Hosts |