1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-13 11:42:08 +00:00
iiab/roles/network/tasks/dnsmasq.yml

23 lines
744 B
YAML
Raw Normal View History

- name: Install dnsmasq
package:
2018-06-01 15:53:34 +00:00
name: dnsmasq
state: present
2018-06-01 15:53:34 +00:00
2018-12-16 13:52:50 +00:00
- name: Install /etc/dnsmasq.d/dnsmasq-iiab, allowing systemd-resolved AND dnsmasq to work (#1306) and custom unit file
template:
2018-12-16 13:52:50 +00:00
src: "{{ item.src }}"
dest: "{{ item.dest }}"
owner: root
group: root
mode: "{{ item.mode }}"
with_items:
- { src: 'roles/network/templates/network/dnsmasq.service.u18', dest: '/etc/systemd/system/iiab-dnsmasq.service', mode: '0644' }
- { src: 'roles/network/templates/network/dnsmasq-iiab', dest: '/etc/dnsmasq.d/dnsmasq-iiab', mode: '644' }
- name: Don't use stock dnsmasq systemd unit file during boot but start now
2018-12-16 13:52:50 +00:00
systemd:
name: dnsmasq
daemon_reload: yes
2018-12-16 13:52:50 +00:00
enabled: no
state: restarted