src.nth.io/

summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pihole/handlers/main.yaml5
-rw-r--r--pihole/tasks/main.yaml9
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