Commit a26e1160 by John Eskew

Change with_items statements.

parent 3f7f9ec5
......@@ -54,11 +54,6 @@
instance_profile_name: "{{ instance_profile_name }}"
register: ec2
- name: Debug EC2 instance attributes
debug:
var: item
with_items: "{{ ec2.instances }}"
- name: Add DNS name
local_action:
module: route53_2_1_1_0
......@@ -82,7 +77,7 @@
record: "{{ item[1] }}-{{ dns_name }}.{{ dns_zone }}"
value: "{{ item[0].public_dns_name }}"
with_nested:
- ec2.instances
- "{{ ec2.instances }}"
- ['studio', 'ecommerce', 'preview', 'programs', 'discovery', 'credentials']
- name: Add new instance to host group
......@@ -90,7 +85,7 @@
module: add_host
hostname: "{{ item.public_ip }}"
groups: launched
with_items: ec2.instances
with_items: "{{ ec2.instances }}"
- name: Wait for SSH to come up
local_action:
......@@ -99,4 +94,4 @@
search_regex: OpenSSH
port: 22
delay: 10
with_items: ec2.instances
with_items: "{{ ec2.instances }}"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment