File tree 2 files changed +16
-2
lines changed
2 files changed +16
-2
lines changed Original file line number Diff line number Diff line change
1
+ - name : reload resolvconf
2
+ when : not in_docker
3
+ systemd :
4
+ name : resolvconf
5
+ state : reloaded
6
+
7
+ - name : reload unbound
8
+ when : not in_docker
9
+ systemd :
10
+ name : unbound
11
+ state : reloaded
Original file line number Diff line number Diff line change 7
7
- resolvconf
8
8
9
9
- name : Setup localhost as the default nameserver
10
+ notify : reload resolvconf
10
11
lineinfile :
11
12
path : /etc/resolvconf/resolv.conf.d/base
12
13
create : true
19
20
line : " domain hashbang.sh"
20
21
21
22
- name : Configure unbound
23
+ notify : reload unbound
22
24
copy :
23
25
dest : /etc/unbound/unbound.conf.d/{{ item.key }}.conf
24
26
validate : unbound-checkconf %s
67
69
# Implementation of draft-dns-0x20, makes DNS poisoning harder
68
70
use-caps-for-id: yes
69
71
70
- - name : Enable & reload services
72
+
73
+ - name : Enable services
71
74
when : not in_docker
72
75
systemd :
73
76
name : " {{ item }}"
74
77
enabled : yes
75
78
masked : no
76
- state : reloaded # TODO: This should be a handler instead
79
+ state : started
77
80
78
81
with_items :
79
82
- unbound
You can’t perform that action at this time.
0 commit comments