xoxys.dnsmasq/tasks/main.yml

19 lines
347 B
YAML

---
- name: Install package
package:
name: dnsmasq
state: present
- name: Create dnsmasq configuration
copy:
content: "{{ dnsmasq_conf }}"
dest: "/etc/dnsmasq.d/local.conf"
mode: "0644"
notify: __dnsmasq_restart
- name: Ensure dnsmasq is up and running
service:
name: dnsmasq
enabled: True
state: started