2019-01-06 22:41:16 +00:00
|
|
|
---
|
2024-02-19 09:43:05 +00:00
|
|
|
- name: Install package
|
2024-08-19 08:25:06 +00:00
|
|
|
ansible.builtin.package:
|
2024-02-19 09:43:05 +00:00
|
|
|
name: dnsmasq
|
|
|
|
state: present
|
2023-06-21 06:39:53 +00:00
|
|
|
|
2024-02-19 09:43:05 +00:00
|
|
|
- name: Create dnsmasq configuration
|
2024-08-19 08:25:06 +00:00
|
|
|
ansible.builtin.copy:
|
2024-02-19 09:43:05 +00:00
|
|
|
content: "{{ dnsmasq_conf }}"
|
|
|
|
dest: "/etc/dnsmasq.d/local.conf"
|
|
|
|
mode: "0644"
|
|
|
|
notify: __dnsmasq_restart
|
2023-06-21 06:39:53 +00:00
|
|
|
|
2024-02-19 09:43:05 +00:00
|
|
|
- name: Ensure dnsmasq is up and running
|
2024-08-19 08:25:06 +00:00
|
|
|
ansible.builtin.service:
|
2024-02-19 09:43:05 +00:00
|
|
|
name: dnsmasq
|
|
|
|
enabled: True
|
|
|
|
state: started
|