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
service:
- name: Reload unbound
systemd:
name: unbound
state: reloaded
- name: Enable unbound
systemd:
name: unbound
enabled: yes
state: started

View File

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