From d9bfda6c292c6b90eb7ba295425a74679e6d9c13 Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Wed, 14 Jun 2017 23:24:25 +0800 Subject: Add basic dnsmasq role --- roles/dnsmasq/tasks/main.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 roles/dnsmasq/tasks/main.yml (limited to 'roles/dnsmasq/tasks') 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: -- cgit v1.2.2