blob: b9523dfcbce71a6e74860cc025f9c7b729eb4e10 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
# This playbook install the dnsmasq (http://www.thekelleys.org.uk/dnsmasq/doc.html)
# DNS forwarder and DHCP server.
#
# Copyright (c) 2013-2017 Fabian Affolter <fabian@affolter-engineering.ch>
#
# All rights reserved. Licensed under CC BY 3.0
#
---
- name: install the dnsmasq server
command: /sbin/apk add dnsmasq
- name: install a default configuration file
template: src=files/dnsmasq.j2
dest=/etc/dnsmasq.conf
owner=root
group=root
mode=0755
backup=yes
notify:
- start dnsmasq
- name: add dnsmasq to the default runlevel
command: rc-update add dnsmasq default
|