aboutsummaryrefslogtreecommitdiffstats
path: root/roles/dnsmasq/tasks/main.yml
diff options
context:
space:
mode:
Diffstat (limited to 'roles/dnsmasq/tasks/main.yml')
-rw-r--r--roles/dnsmasq/tasks/main.yml18
1 files changed, 18 insertions, 0 deletions
diff --git a/roles/dnsmasq/tasks/main.yml b/roles/dnsmasq/tasks/main.yml
new file mode 100644
index 0000000..5275ed5
--- /dev/null
+++ b/roles/dnsmasq/tasks/main.yml
@@ -0,0 +1,18 @@
+---
+- name: Ensure that BIND is not installed in order to avoid conflicts with dnsmasq
+ apt:
+ name: bind9
+ state: absent
+
+- name: Install dnsmasq
+ apt:
+ name: dnsmasq
+ state: present
+
+- name: Generate the dnsmasq configuration file
+ template:
+ src: dnsmasq.conf.j2
+ dest: /etc/dnsmasq.conf
+ notify: Restart dnsmasq
+
+# vim: set ft=yaml sw=2: