summaryrefslogtreecommitdiffstats
path: root/ansible/deployment_poc/tasks/configure_dns.yml
diff options
context:
space:
mode:
Diffstat (limited to 'ansible/deployment_poc/tasks/configure_dns.yml')
-rw-r--r--ansible/deployment_poc/tasks/configure_dns.yml12
1 files changed, 12 insertions, 0 deletions
diff --git a/ansible/deployment_poc/tasks/configure_dns.yml b/ansible/deployment_poc/tasks/configure_dns.yml
index 6f1896c..9a28800 100644
--- a/ansible/deployment_poc/tasks/configure_dns.yml
+++ b/ansible/deployment_poc/tasks/configure_dns.yml
@@ -5,6 +5,8 @@
set_fact:
dns_fqdn: "{{ lookup('community.general.dig', dns_ip + '/PTR') }}"
vm_fqdn: "{{ vm_name + '.' + namespace }}"
+ tags:
+ - init_ssh
- name: Gather DNS hostname and zonename
set_fact:
@@ -23,6 +25,16 @@
path: "/var/nsd/zones/master/{{ zone }}.zone"
when: dns_os == 'openbsd-x86_64'
delegate_to: "{{ dns_host }}"
+
+ - name: Reload DNS zone
+ ansible.builtin.command:
+ argv:
+ - /usr/bin/doas
+ - nsd-control
+ - reload
+ - "{{ zone }}"
+ when: dhcp_os == 'openbsd-x86_64'
+ delegate_to: "{{ dns_host }}"
- name: Insert DNS static host mapping
vyos.vyos.vyos_config: