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
e8b878b4
Commit
e8b878b4
authored
Oct 09, 2017
by
Ibrahim
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
create cnames for themes services
parent
c6f8dfdc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
1 deletions
+21
-1
playbooks/roles/launch_ec2/tasks/main.yml
+21
-1
No files found.
playbooks/roles/launch_ec2/tasks/main.yml
View file @
e8b878b4
...
...
@@ -91,7 +91,6 @@
-
"
{{
ec2.instances
}}"
-
[
'
mitxpro'
,
'
hms'
,
'
harvardx'
,
'
wharton'
,
'
juilliard'
,
'
campus'
]
-
name
:
Add DNS names for services
local_action
:
module
:
route53
...
...
@@ -110,6 +109,27 @@
-
"
{{
ec2.instances
}}"
-
[
'
studio'
,
'
ecommerce'
,
'
preview'
,
'
discovery'
,
'
credentials'
,
'
veda'
]
-
name
:
Add DNS names for themes services
local_action
:
module
:
route53
overwrite
:
yes
command
:
create
zone
:
"
{{
dns_zone
}}"
type
:
CNAME
ttl
:
300
record
:
"
{{
item[1]
}}-{{
item[2]
}}-{{
dns_name
}}.{{
dns_zone
}}"
value
:
"
{{
item[0].public_dns_name
}}"
register
:
task_result
until
:
task_result|succeeded
retries
:
5
delay
:
30
with_nested
:
-
"
{{
ec2.instances
}}"
-
[
'
studio'
,
'
ecommerce'
,
'
preview'
,
'
discovery'
,
'
credentials'
]
-
[
'
mitxpro'
,
'
hms'
,
'
harvardx'
,
'
wharton'
,
'
juilliard'
,
'
campus'
]
-
name
:
Display cnames
debug
:
msg
:
"
{{
item[1]
}}-{{
dns_name
}}.{{
dns_zone
}}
{{
item[0].public_dns_name
}}"
...
...
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