Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
configuration
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
configuration
Commits
a26e1160
Commit
a26e1160
authored
Dec 08, 2016
by
John Eskew
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change with_items statements.
parent
3f7f9ec5
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
8 deletions
+3
-8
playbooks/roles/launch_ec2/tasks/main.yml
+3
-8
No files found.
playbooks/roles/launch_ec2/tasks/main.yml
View file @
a26e1160
...
...
@@ -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
}}"
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment