Added basic pihole role.
authorLuke Hoersten <luke@hoersten.org>
Sat, 15 Feb 2020 14:30:44 -0600
changeset 9 e58af497ee2f
parent 8 20975062661d
child 10 524cf40846b3
Added basic pihole role.
pihole/handlers/main.yaml
pihole/tasks/main.yaml
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/pihole/handlers/main.yaml	Sat Feb 15 14:30:44 2020 -0600
@@ -0,0 +1,5 @@
+---
+
+- name: restart pihole-ftl
+  systemd: name="pihole-FTL.service" state="restarted" daemon_reload="yes"
+  become: yes
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/pihole/tasks/main.yaml	Sat Feb 15 14:30:44 2020 -0600
@@ -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