1
0
forked from finallycoffee/base

feat: add finallycoffee.base.dns role

This commit is contained in:
transcaffeine 2023-11-07 18:37:58 +01:00
parent f72dd239f9
commit 52bf02e084
Signed by untrusted user: transcaffeine
GPG Key ID: 03624C433676E465
2 changed files with 13 additions and 0 deletions

View File

@ -0,0 +1,2 @@
---
dns_record_state: present

11
roles/dns/tasks/main.yml Normal file
View File

@ -0,0 +1,11 @@
---
- name: Ensure DNS records in '{{ dns_zone }}' are up to date
famedly.dns.update:
primary_master: "{{ dns_server }}"
zone: "{{ dns_zone }}"
tsig_name: "{{ dns_tsig_name }}"
tsig_algo: "{{ dns_tsig_algo }}"
tsig_key: "{{ dns_tsig_key }}"
rr_set: "{{ dns_records }}"
state: "{{ dns_record_state }}"