Add notifies for trigger reloads and early service discovery/resolution example
This commit is contained in:
parent
a297501524
commit
a7ae799207
|
@ -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."
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Reference in New Issue