Add dnsmasq role
This commit is contained in:
parent
02086cdc32
commit
b20e9cccff
6 changed files with 56 additions and 0 deletions
16
roles/dnsmasq/tasks/main.yml
Normal file
16
roles/dnsmasq/tasks/main.yml
Normal file
|
@ -0,0 +1,16 @@
|
|||
- name: Install packages
|
||||
package:
|
||||
name:
|
||||
- dnsmasq
|
||||
|
||||
- name: Configure dnsmasq
|
||||
template:
|
||||
dest: '/etc/dnsmasq.d/{{ item }}'
|
||||
src: '{{ item }}.j2'
|
||||
loop:
|
||||
- 00-options.conf
|
||||
- 10-ranges.conf
|
||||
notify: restart dnsmasq
|
||||
|
||||
# TODO DNS update
|
||||
# TODO netboot config
|
Loading…
Add table
Add a link
Reference in a new issue