diff options
author | Elizabeth Hunt <elizabeth.hunt@simponic.xyz> | 2024-01-02 15:42:42 -0500 |
---|---|---|
committer | Elizabeth Hunt <elizabeth.hunt@simponic.xyz> | 2024-01-02 15:42:42 -0500 |
commit | c6a770bd1a6cab43ec4282043bf4f5d6e175c19c (patch) | |
tree | a478467aeeb1d3ab47c07cdbacaa7f0a58f1f584 /roles/nameservers/tasks/main.yml | |
parent | 1f9f2b7608d3915d2f8a3a556db19c27040d3a4d (diff) | |
download | oldinfra-c6a770bd1a6cab43ec4282043bf4f5d6e175c19c.tar.gz oldinfra-c6a770bd1a6cab43ec4282043bf4f5d6e175c19c.zip |
initial headscale foo & dns updates
Diffstat (limited to 'roles/nameservers/tasks/main.yml')
-rw-r--r-- | roles/nameservers/tasks/main.yml | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/roles/nameservers/tasks/main.yml b/roles/nameservers/tasks/main.yml index e078c00..d52a3b0 100644 --- a/roles/nameservers/tasks/main.yml +++ b/roles/nameservers/tasks/main.yml @@ -19,8 +19,8 @@ - name: create primary zone files for primary template: - src: "../templates/{{ item.zone_file }}.j2" - dest: "/etc/bind/zones/{{ item.zone_file }}" + src: "../templates/db.{{ item.zone }}.j2" + dest: "/etc/bind/zones/db.{{ item.zone }}" owner: bind group: bind with_items: "{{ dns_zones }}" @@ -37,6 +37,10 @@ group: bind when: inventory_hostname in groups['dnsreplica'] +- name: flush dns cache on replicas + file: path={{ item }} state=absent + with_fileglob: /var/cache/bind/db.* + - name: restart bind9 service: name: bind9 |