trixie/roles/dnsmasq/tasks/main.yml

25 lines
556 B
YAML
Raw Normal View History

- name: check if dnsmasq is already there
stat: path=/etc/dnsmasq.d/dnsmasq-dhcp
register: dnsmasq
2018-06-04 18:00:25 +03:00
- name: install dnsmasq package
2018-05-31 18:20:51 +03:00
apt:
name:
- dnsmasq
- resolvconf
2022-06-11 12:42:02 +02:00
state: latest # noqa package-latest
2018-05-31 18:20:51 +03:00
- name: configure dnsmasq dhcp
2018-05-31 18:20:51 +03:00
template:
src: dnsmasq-dhcp.j2
dest: /etc/dnsmasq.d/dnsmasq-dhcp
2022-06-11 12:42:02 +02:00
mode: 0644
2018-05-31 18:20:51 +03:00
notify: "restart dnsmasq"
- name: configure dnsmasq tftp
template:
src: dnsmasq-tftp-netboot-installer.j2
dest: /etc/dnsmasq.d/tftp-netboot-installer
2022-06-11 12:42:02 +02:00
mode: 0644
notify: "restart dnsmasq"