19 lines
349 B
YAML
19 lines
349 B
YAML
---
|
|
- name: Install dnsmasq
|
|
apt:
|
|
name: dnsmasq
|
|
state: present
|
|
|
|
- name: Create dnsmasq configuration
|
|
template:
|
|
src: dnsmasq.conf.j2
|
|
dest: /etc/dnsmasq.d/{{ gateway_config.lab_name }}.conf
|
|
mode: '0644'
|
|
notify: restart dnsmasq
|
|
|
|
- name: Enable and start dnsmasq
|
|
systemd:
|
|
name: dnsmasq
|
|
enabled: yes
|
|
state: started
|