Replace community.aws.route53 with new CN

This commit is contained in:
Salt 2023-10-29 14:04:46 -05:00
parent b190aa827f
commit c824e7bc33

View File

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