aboutsummaryrefslogtreecommitdiffstats
path: root/roles/dnsmasq/tasks/main.yml
blob: 5275ed51b470601c2ef2a1d11d56f8f571be3692 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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: