|
@@ -11,8 +11,10 @@
|
|
|
with_items: "{{ droplets }}"
|
|
with_items: "{{ droplets }}"
|
|
|
register: droplet_details
|
|
register: droplet_details
|
|
|
|
|
|
|
|
-- name: Save IP/ID/Group to file
|
|
|
|
|
- local_action: copy content="{{ item['droplet']['ip_address'] }}" dest="/tmp/outfile{{item['droplet']['name']}}"
|
|
|
|
|
|
|
+- name: PUTing name,ip on database
|
|
|
|
|
+ uri: >
|
|
|
|
|
+ url="http://localhost:8080/machines/{{dogroupname}}/{{item['droplet']['name']}}/{{ item['droplet']['ip_address'] }}"
|
|
|
|
|
+ method=PUT
|
|
|
with_items: "{{ droplet_details.results }}"
|
|
with_items: "{{ droplet_details.results }}"
|
|
|
|
|
|
|
|
- name: Add new droplet to host group
|
|
- name: Add new droplet to host group
|