Skip to content

Commit

Permalink
Use relative DNS records for Gandi
Browse files Browse the repository at this point in the history
  • Loading branch information
debovema committed Jan 19, 2023
1 parent 9131773 commit b3bd785
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions ansible/roles/public_dns/tasks/create-gandi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
community.general.gandi_livedns:
state: present
domain: "{{ pd_gandi_zone }}"
record: "{{ item }}.{{ pd_public_domain }}"
record: "{{ item }}.{{ cluster_name }}"
type: A
values:
- "{{ pd_public_ip }}"
Expand All @@ -20,7 +20,7 @@
community.general.gandi_livedns:
state: present
domain: "{{ pd_gandi_zone }}"
record: "{{ item }}.{{ pd_public_domain }}"
record: "{{ item }}.{{ cluster_name }}"
type: AAAA
values:
- "{{ pd_public_ipv6 }}"
Expand Down
4 changes: 2 additions & 2 deletions ansible/roles/public_dns/tasks/destroy-gandi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
community.general.gandi_livedns:
state: absent
domain: "{{ pd_gandi_zone }}"
record: "{{ item }}.{{ pd_public_domain }}"
record: "{{ item }}.{{ cluster_name }}"
type: A
api_key: "{{ gandi_api_key }}"
with_items:
Expand All @@ -17,7 +17,7 @@
community.general.gandi_livedns:
state: absent
domain: "{{ pd_gandi_zone }}"
record: "{{ item }}.{{ pd_public_domain }}"
record: "{{ item }}.{{ cluster_name }}"
type: AAAA
api_key: "{{ gandi_api_key }}"
with_items:
Expand Down

0 comments on commit b3bd785

Please sign in to comment.