xoxys.dnsmasq/tasks/main.yml

19 lines
395 B
YAML
Raw Normal View History

2019-01-06 22:41:16 +00:00
---
2024-02-19 09:43:05 +00:00
- name: Install package
ansible.builtin.package:
2024-02-19 09:43:05 +00:00
name: dnsmasq
state: present
2024-02-19 09:43:05 +00:00
- name: Create dnsmasq configuration
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
2024-02-19 09:43:05 +00:00
- name: Ensure dnsmasq is up and running
ansible.builtin.service:
2024-02-19 09:43:05 +00:00
name: dnsmasq
enabled: True
state: started