Skip to content

Commit

Permalink
Added password setting support
Browse files Browse the repository at this point in the history
  • Loading branch information
blalop committed Jan 21, 2021
1 parent 764920a commit add88ab
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 4 additions & 2 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
pihole_required_packages:
- procps

pihole_password: pihole

pihole_force_reinstall: false

## Lighttpd config
pihole_lighttpd_port: 80

Expand All @@ -16,5 +20,3 @@ pihole_query_logging: true
pihole_web_server: true
pihole_web_interface: true
pihole_lighttpd_enabled: true

pihole_force_reinstall: false
4 changes: 4 additions & 0 deletions tasks/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,7 @@
dest: /etc/lighttpd/lighttpd.conf
notify: restart pihole_lighttpd
when: pihole_web_server

- name: Pi-hole | Set password
command: "pihole -a -p {{ pihole_password }}"
when: pihole_password | length > 0

0 comments on commit add88ab

Please sign in to comment.