Skip to content

Commit add88ab

Browse files
committed
Added password setting support
1 parent 764920a commit add88ab

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

defaults/main.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
pihole_required_packages:
44
- procps
55

6+
pihole_password: pihole
7+
8+
pihole_force_reinstall: false
9+
610
## Lighttpd config
711
pihole_lighttpd_port: 80
812

@@ -16,5 +20,3 @@ pihole_query_logging: true
1620
pihole_web_server: true
1721
pihole_web_interface: true
1822
pihole_lighttpd_enabled: true
19-
20-
pihole_force_reinstall: false

tasks/config.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,7 @@
66
dest: /etc/lighttpd/lighttpd.conf
77
notify: restart pihole_lighttpd
88
when: pihole_web_server
9+
10+
- name: Pi-hole | Set password
11+
command: "pihole -a -p {{ pihole_password }}"
12+
when: pihole_password | length > 0

0 commit comments

Comments
 (0)