diff options
author | Georg Pfuetzenreuter | 2022-02-13 16:56:12 +0100 |
---|---|---|
committer | Georg Pfuetzenreuter | 2022-02-13 16:56:12 +0100 |
commit | 2ce8450b893ad9f8a119a1ff24dcc7eb4ba78b82 (patch) | |
tree | 031a57c9007535346a2760b352f66ee70dabb761 /ansible/deployment_poc/tasks/configure_dns.yml | |
parent | 9f8f61a0abb3ab5cf8d94540573191ba4b8893d0 (diff) | |
download | system-2ce8450b893ad9f8a119a1ff24dcc7eb4ba78b82.tar.gz system-2ce8450b893ad9f8a119a1ff24dcc7eb4ba78b82.tar.bz2 system-2ce8450b893ad9f8a119a1ff24dcc7eb4ba78b82.zip |
Bulk update
Signed-off-by: Georg Pfuetzenreuter <georg@lysergic.dev>
Diffstat (limited to 'ansible/deployment_poc/tasks/configure_dns.yml')
-rw-r--r-- | ansible/deployment_poc/tasks/configure_dns.yml | 12 |
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: |