File tree Expand file tree Collapse file tree 9 files changed +258
-215
lines changed Expand file tree Collapse file tree 9 files changed +258
-215
lines changed Original file line number Diff line number Diff line change @@ -4,5 +4,6 @@ exclude_paths:
4
4
parseable: true
5
5
skip_list:
6
6
- '204'
7
+ - '208'
7
8
use_default_rules: true
8
9
verbosity: 1
Original file line number Diff line number Diff line change
1
+ # Change Log
2
+ All notable changes to this project will be documented in this file.
3
+ This project adheres to [ Semantic Versioning] ( http://semver.org/ ) and [ Keep a changelog] ( https://github.com/olivierlacan/keep-a-changelog ) .
4
+
5
+ ## [ 1.0.0] ( https://github.com/blalop/pihole_role/tree/1.0.0 ) - 2021-06-30
6
+ ### Added
7
+ * [ #3 ] ( https://github.com/blalop/pihole_role/issues/3 ) Allow no password @blalop
8
+ ### Breaking :warning :
9
+ * For password changing, pihole_force_reinstall has to be set to true @blalop
10
+ * No password configured by default @blalop
11
+
12
+ ## [ 0.4.0] ( https://github.com/blalop/pihole_role/tree/0.4.0 ) - 2021-02-27
13
+ ### Added
14
+ * [ #1 ] ( https://github.com/blalop/pihole_role/issues/1 ) Support for pihole exporter @blalop
15
+
16
+ ## [ 0.3.2] ( https://github.com/blalop/pihole_role/tree/0.3.2 ) - 2021-01-23
17
+ ### Added
18
+ * Also tag installation checks @blalop
19
+
20
+ ## [ 0.3.1] ( https://github.com/blalop/pihole_role/tree/0.3.1 ) - 2021-01-22
21
+ ### Fixed
22
+ * Fixed password setting idempotence @blalop
23
+
24
+ ## [ 0.3.0] ( https://github.com/blalop/pihole_role/tree/0.3.0 ) - 2021-01-21
25
+ ### Added
26
+ * Added password setting support @blalop
27
+
28
+ ## [ 0.2.0] ( https://github.com/blalop/pihole_role/tree/0.2.0 ) - 2021-01-16
29
+ ### Added
30
+ * Use /tmp when downloading install script @blalop
31
+ * Don't copy the lighttpd conf when it's not being installed @blalop
32
+
33
+ ## [ 0.1.0] ( https://github.com/blalop/pihole_role/tree/0.1.0 ) - 2021-01-16
34
+ ### Added
35
+ * Initial release @blalop
Original file line number Diff line number Diff line change @@ -4,10 +4,12 @@ verify_ssl = true
4
4
name = " pypi"
5
5
6
6
[packages ]
7
- ansible = " ==2.9.16"
8
- molecule = " ==3.2.2"
7
+ ansible = " ==4.0.0"
8
+ molecule = " ==3.3.2"
9
+ docker = " ==5.0.0"
10
+ ansible-lint = " ==5.0.9"
9
11
molecule-docker = " ==0.2.4"
10
- ansible-lint = " ==4.3.7 "
12
+ yamllint = " ==1.26.1 "
11
13
12
14
[dev-packages ]
13
15
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ pihole_required_packages:
6
6
7
7
pihole_force_reinstall : false
8
8
9
- pihole_password : pihole
9
+ pihole_password : " "
10
10
11
11
# # Lighttpd config
12
12
pihole_lighttpd_port : 80
Original file line number Diff line number Diff line change 5
5
name : docker
6
6
lint : |
7
7
yamllint .
8
+ ansible-lint .
8
9
platforms :
9
10
- name : pihole
10
11
groups :
Original file line number Diff line number Diff line change 6
6
dest : /etc/lighttpd/lighttpd.conf
7
7
notify : restart pihole_lighttpd
8
8
when : pihole_web_server
9
-
10
- - name : Pi-hole | Check current password hash
11
- command : grep -oP 'WEBPASSWORD=\K\w+' /etc/pihole/setupVars.conf
12
- changed_when : false
13
- ignore_errors : true
14
- register : pihole_current_password_hash
15
-
16
- - name : Pi-hole | Set password
17
- command : " pihole -a -p {{ pihole_password }}"
18
- changed_when : true
19
- when : pihole_password | length > 0 and
20
- pihole_password | hash('sha256') | hash('sha256') != pihole_current_password_hash.stdout
Original file line number Diff line number Diff line change 24
24
25
25
- name : Pi-hole | Run install script
26
26
command : /tmp/pihole-install.sh --unattended
27
+ changed_when : true
Original file line number Diff line number Diff line change @@ -7,3 +7,4 @@ QUERY_LOGGING={{ pihole_query_logging | lower }}
7
7
INSTALL_WEB_SERVER={{ pihole_web_server | lower }}
8
8
INSTALL_WEB_INTERFACE={{ pihole_web_interface | lower }}
9
9
LIGHTTPD_ENABLED={{ pihole_lighttpd_enabled | lower }}
10
+ WEBPASSWORD={{ '' if pihole_password == '' else pihole_password | hash('sha256') | hash('sha256') }}
You can’t perform that action at this time.
0 commit comments