lmn-client/roles/dhcp-dns-dnsmasq/tasks/main.yml
2019-11-29 14:38:07 +01:00

16 lines
336 B
YAML

- name: check if dnsmasq is already there
stat: path=/etc/dnsmasq.d/dnsmasq-dhcp
register: dnsmasq
- name: install dnsmasq package
apt:
name:
- dnsmasq
- resolvconf
state: latest
- name: configure dnsmasq
template:
src: dnsmasq-dhcp.j2
dest: /etc/dnsmasq.d/dnsmasq-dhcp
notify: "restart dnsmasq"