|
@@ -8,13 +8,9 @@
|
|
|
region_id=nyc1
|
|
region_id=nyc1
|
|
|
image_id=debian-8-x64
|
|
image_id=debian-8-x64
|
|
|
ssh_key_ids={{ desktap.ssh_key.id }}
|
|
ssh_key_ids={{ desktap.ssh_key.id }}
|
|
|
- private_networking=yes
|
|
|
|
|
with_items: "{{ droplets }}"
|
|
with_items: "{{ droplets }}"
|
|
|
register: droplet_details
|
|
register: droplet_details
|
|
|
|
|
|
|
|
- #- debug: msg="IP is {{ item['droplet']['ip_address'] }}, ID is {{ item['droplet']['id']}}."
|
|
|
|
|
- # with_items: "{{ droplet_details.results }}"
|
|
|
|
|
-
|
|
|
|
|
- name: Save IP/ID/Group to file
|
|
- name: Save IP/ID/Group to file
|
|
|
local_action: copy content="{{ item['droplet']['ip_address'] }}" dest="/tmp/outfile{{item['droplet']['name']}}"
|
|
local_action: copy content="{{ item['droplet']['ip_address'] }}" dest="/tmp/outfile{{item['droplet']['name']}}"
|
|
|
with_items: "{{ droplet_details.results }}"
|
|
with_items: "{{ droplet_details.results }}"
|