Replace community.aws.route53 with new CN
This commit is contained in:
parent
b190aa827f
commit
c824e7bc33
@ -5,7 +5,7 @@
|
|||||||
gather_facts: no
|
gather_facts: no
|
||||||
become: no
|
become: no
|
||||||
module_defaults:
|
module_defaults:
|
||||||
community.aws.route53:
|
amazon.aws.route53:
|
||||||
# These credentials are specific to this playbook
|
# These credentials are specific to this playbook
|
||||||
aws_access_key: !vault |
|
aws_access_key: !vault |
|
||||||
$ANSIBLE_VAULT;1.1;AES256
|
$ANSIBLE_VAULT;1.1;AES256
|
||||||
@ -30,7 +30,7 @@
|
|||||||
- name: configure dns
|
- name: configure dns
|
||||||
block:
|
block:
|
||||||
- name: configure main mgmt dns
|
- name: configure main mgmt dns
|
||||||
community.aws.route53:
|
amazon.aws.route53:
|
||||||
record: "{{ inventory_hostname }}"
|
record: "{{ inventory_hostname }}"
|
||||||
type: A
|
type: A
|
||||||
ttl: 3600
|
ttl: 3600
|
||||||
@ -39,7 +39,7 @@
|
|||||||
- "{{ ansible_host }}"
|
- "{{ ansible_host }}"
|
||||||
tags: [ route53, dns, main ]
|
tags: [ route53, dns, main ]
|
||||||
- name: configure interface dns
|
- name: configure interface dns
|
||||||
community.aws.route53:
|
amazon.aws.route53:
|
||||||
record: "{{ item.name }}.{{ inventory_hostname }}"
|
record: "{{ item.name }}.{{ inventory_hostname }}"
|
||||||
type: A
|
type: A
|
||||||
ttl: 3600
|
ttl: 3600
|
||||||
@ -53,7 +53,7 @@
|
|||||||
tags: [ route53, dns, interface ]
|
tags: [ route53, dns, interface ]
|
||||||
- name: configure root a record
|
- name: configure root a record
|
||||||
run_once: yes
|
run_once: yes
|
||||||
community.aws.route53:
|
amazon.aws.route53:
|
||||||
record: desu.ltd
|
record: desu.ltd
|
||||||
type: A
|
type: A
|
||||||
ttl: 3600
|
ttl: 3600
|
||||||
@ -64,7 +64,7 @@
|
|||||||
when: status.value == "active" and inventory_hostname is match(".*\.desu\.ltd")
|
when: status.value == "active" and inventory_hostname is match(".*\.desu\.ltd")
|
||||||
tags: [ route53, dns ]
|
tags: [ route53, dns ]
|
||||||
- name: configure legacy dns
|
- name: configure legacy dns
|
||||||
community.aws.route53:
|
amazon.aws.route53:
|
||||||
record: "{{ item.record }}"
|
record: "{{ item.record }}"
|
||||||
type: "{{ item.type | default('CNAME', true) }}"
|
type: "{{ item.type | default('CNAME', true) }}"
|
||||||
ttl: 3600
|
ttl: 3600
|
||||||
@ -83,7 +83,7 @@
|
|||||||
run_once: true
|
run_once: true
|
||||||
tags: [ route53, dns, legacy ]
|
tags: [ route53, dns, legacy ]
|
||||||
- name: configure site dns
|
- name: configure site dns
|
||||||
community.aws.route53:
|
amazon.aws.route53:
|
||||||
record: "{{ item.record }}"
|
record: "{{ item.record }}"
|
||||||
type: "{{ item.type | default('CNAME', true) }}"
|
type: "{{ item.type | default('CNAME', true) }}"
|
||||||
ttl: 3600
|
ttl: 3600
|
||||||
|
Loading…
Reference in New Issue
Block a user