File tree Expand file tree Collapse file tree 4 files changed +12
-9
lines changed Expand file tree Collapse file tree 4 files changed +12
-9
lines changed Original file line number Diff line number Diff line change 5
5
name : docker
6
6
lint : |
7
7
yamllint .
8
- ansible-lint .
9
8
platforms :
10
9
- name : pihole
11
10
groups :
@@ -23,8 +22,6 @@ platforms:
23
22
capabilities :
24
23
- SYS_ADMIN
25
24
- NET_ADMIN
26
- - NET_BIND_SERVICE
27
- - NET_RAW
28
25
- SYS_NICE
29
26
tmpfs :
30
27
- /tmp
Original file line number Diff line number Diff line change @@ -10,4 +10,9 @@ service:
10
10
11
11
http :
12
12
" http://localhost:{{ pihole_lighttpd_port }} " :
13
- status : 200
13
+ status : 200
14
+
15
+ command :
16
+ healthcheck :
17
+ exec : " dig +norecurse +retry=0 @127.0.0.1 pi.hole || exit 1"
18
+ exit-status : 0
Original file line number Diff line number Diff line change 3
3
- name : Pi-hole | Copy lighttpd config
4
4
template :
5
5
src : lighttpd.conf.j2
6
- dest : /etc/lighttpd/setupVars .conf
7
- notify : restart pihole_lighttpd
6
+ dest : /etc/lighttpd/lighttpd .conf
7
+ notify : restart pihole_lighttpd
Original file line number Diff line number Diff line change 1
1
---
2
2
3
3
- name : Pi-hole | Check installation
4
- command : pihole status
5
- register : pihole_status_check
4
+ command : pihole version
5
+ register : pihole_version_check
6
6
ignore_errors : true
7
+ changed_when : false
7
8
8
9
- name : Pi-hole | Install
9
10
include : install.yml
10
- when : pihole_status_check is failed or pihole_force_reinstall
11
+ when : pihole_version_check is failed or pihole_force_reinstall
11
12
tags :
12
13
- pihole_install
13
14
You can’t perform that action at this time.
0 commit comments