Commit e8b878b4 by Ibrahim

create cnames for themes services

parent c6f8dfdc
......@@ -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 }}"
......
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