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