1
2
3
4
5
6
7
8 ---
- name: "Create file: /etc/dnsmasq.conf"
template:
src: dnsmasq.conf.j2
dest: /etc/dnsmasq.conf
validate: /usr/bin/dnsmasq --test -C %s
notify: Restart dnsmasq
My personal ansible roles and playbooks [deprecated in favor of nixos]
1
2
3
4
5
6
7
8 ---
- name: "Create file: /etc/dnsmasq.conf"
template:
src: dnsmasq.conf.j2
dest: /etc/dnsmasq.conf
validate: /usr/bin/dnsmasq --test -C %s
notify: Restart dnsmasq