Commit 47337915 by arbabnazar

fix ansible 2.x error

parent 107bdedd
...@@ -66,7 +66,7 @@ ...@@ -66,7 +66,7 @@
ttl: 300 ttl: 300
record: "{{ dns_name }}.{{ dns_zone }}" record: "{{ dns_name }}.{{ dns_zone }}"
value: "{{ item.public_dns_name }}" value: "{{ item.public_dns_name }}"
with_items: ec2.instances with_items: "{{ ec2.instances }}"
- name: Add DNS names for services - name: Add DNS names for services
local_action: local_action:
...@@ -79,7 +79,7 @@ ...@@ -79,7 +79,7 @@
record: "{{ item[1] }}-{{ dns_name }}.{{ dns_zone }}" record: "{{ item[1] }}-{{ dns_name }}.{{ dns_zone }}"
value: "{{ item[0].public_dns_name }}" value: "{{ item[0].public_dns_name }}"
with_nested: with_nested:
- ec2.instances - "{{ ec2.instances }}"
- ['studio', 'ecommerce', 'preview', 'programs', 'discovery', 'credentials'] - ['studio', 'ecommerce', 'preview', 'programs', 'discovery', 'credentials']
- name: Add new instance to host group - name: Add new instance to host group
...@@ -87,7 +87,7 @@ ...@@ -87,7 +87,7 @@
module: add_host module: add_host
hostname: "{{ item.public_ip }}" hostname: "{{ item.public_ip }}"
groups: launched groups: launched
with_items: ec2.instances with_items: "{{ ec2.instances }}"
- name: Wait for SSH to come up - name: Wait for SSH to come up
local_action: local_action:
...@@ -97,4 +97,4 @@ ...@@ -97,4 +97,4 @@
port: 22 port: 22
delay: 60 delay: 60
timeout: 320 timeout: 320
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