diff --git a/files/internal.conf b/files/internal.conf new file mode 100644 index 0000000..361423e --- /dev/null +++ b/files/internal.conf @@ -0,0 +1,5 @@ +server: + local-zone: "redxen.local." static + + local-data: "_git._tcp.redxen.local. 86400 IN SRV 0 5 2202 nbg0.redxen.local." + local-data: "_haproxy._tcp.redxen.local. 86400 IN SRV 0 5 8080 nbg3.redxen.local." diff --git a/handlers/main.yml b/handlers/main.yml index adae4ad..58d7042 100644 --- a/handlers/main.yml +++ b/handlers/main.yml @@ -1,4 +1,9 @@ -- name: reload unbound - service: +- name: Reload unbound + systemd: name: unbound state: reloaded +- name: Enable unbound + systemd: + name: unbound + enabled: yes + state: started diff --git a/tasks/main.yml b/tasks/main.yml index 74fd840..f5f7f43 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -4,15 +4,12 @@ name: unbound state: present cache_valid_time: 3600 + notify: + - Enable unbound - name: Copy configuration files copy: follow: yes src: roles/dns/files/ dest: /etc/unbound/ notify: - - reload unbound -- name: Enable unbound in systemd - systemd: - name: unbound - enabled: yes - state: started + - Reload unbound