diff options
| author | Luke Hoersten <[email protected]> | 2020-02-15 14:30:44 -0600 |
|---|---|---|
| committer | Luke Hoersten <[email protected]> | 2020-02-15 14:30:44 -0600 |
| commit | 3f7393b3f5c68e96546b0ba35a9e1390e6d92f04 (patch) | |
| tree | 07efde1703ab3f0c3c2c37941157be41a69724f4 | |
| parent | 4626821faac754e918836774280fa5c69d10447f (diff) | |
Added basic pihole role.
| -rw-r--r-- | pihole/handlers/main.yaml | 5 | ||||
| -rw-r--r-- | pihole/tasks/main.yaml | 9 |
2 files changed, 14 insertions, 0 deletions
diff --git a/pihole/handlers/main.yaml b/pihole/handlers/main.yaml new file mode 100644 index 0000000..864ac26 --- /dev/null +++ b/pihole/handlers/main.yaml @@ -0,0 +1,5 @@ +--- + +- name: restart pihole-ftl + systemd: name="pihole-FTL.service" state="restarted" daemon_reload="yes" + become: yes diff --git a/pihole/tasks/main.yaml b/pihole/tasks/main.yaml new file mode 100644 index 0000000..db456c9 --- /dev/null +++ b/pihole/tasks/main.yaml @@ -0,0 +1,9 @@ +--- + +- name: install custom DNS names + become: yes + copy: + src: "{{pihole_custom_dns_list}}" + dest: "/etc/pihole/custom.list" + mode: "0644" + notify: restart pihole-ftl |
