mirror of
https://github.com/iiab/iiab.git
synced 2025-02-13 03:32:12 +00:00
22 lines
744 B
YAML
22 lines
744 B
YAML
- name: Install dnsmasq
|
|
package:
|
|
name: dnsmasq
|
|
state: present
|
|
|
|
- name: Install /etc/dnsmasq.d/dnsmasq-iiab, allowing systemd-resolved AND dnsmasq to work (#1306) and custom unit file
|
|
template:
|
|
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
|
|
systemd:
|
|
name: dnsmasq
|
|
daemon_reload: yes
|
|
enabled: no
|
|
state: restarted
|