Add notifies for trigger reloads and early service discovery/resolution example

This commit is contained in:
Alex 2020-04-03 22:59:07 +02:00
parent a297501524
commit a7ae799207
Signed by: caskd
GPG Key ID: F92BA85F61F4C173
3 changed files with 15 additions and 8 deletions

5
files/internal.conf Normal file
View File

@ -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."

View File

@ -1,4 +1,9 @@
- name: reload unbound - name: Reload unbound
service: systemd:
name: unbound name: unbound
state: reloaded state: reloaded
- name: Enable unbound
systemd:
name: unbound
enabled: yes
state: started

View File

@ -4,15 +4,12 @@
name: unbound name: unbound
state: present state: present
cache_valid_time: 3600 cache_valid_time: 3600
notify:
- Enable unbound
- name: Copy configuration files - name: Copy configuration files
copy: copy:
follow: yes follow: yes
src: roles/dns/files/ src: roles/dns/files/
dest: /etc/unbound/ dest: /etc/unbound/
notify: notify:
- reload unbound - Reload unbound
- name: Enable unbound in systemd
systemd:
name: unbound
enabled: yes
state: started