2019-01-06 22:41:16 +00:00
|
|
|
---
|
2023-06-21 06:39:53 +00:00
|
|
|
- block:
|
|
|
|
- name: Install package
|
|
|
|
package:
|
|
|
|
name: dnsmasq
|
|
|
|
state: present
|
|
|
|
|
|
|
|
- name: Create dnsmasq configuration
|
|
|
|
template:
|
|
|
|
src: "etc/dnsmasq.d/local.conf.j2"
|
|
|
|
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
|
|
|
|
become: True
|
|
|
|
become_user: root
|