1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-03-09 15:40:17 +00:00

setup installing dnsmasq

This commit is contained in:
Jerry Vonau 2018-06-01 10:53:34 -05:00
parent 1267c1e19c
commit f6e16fea68
2 changed files with 16 additions and 4 deletions

View file

@ -1,6 +1,11 @@
- name: Install dnsmasq
package: name=dnsmasq state=present
- name: Stop dnsmasq
service:
name: dnsmasq
state: stopped
- name: Configure dhcpd
template: src={{ item.src }}
dest={{ item.dest }}
@ -9,4 +14,11 @@
mode={{ item.mode }}
with_items:
- { src: 'network/dnsmasq.service.rh', dest: '/etc/systemd/system/dnsmasq.service', mode: '0644' }
- { src: 'network/dnsmasq.conf.j2' dest: '/etc/dnsmasq.conf' mode: '644' }
- name: Start dnsmasq
systemd:
name: dnsmasq
state: restarted
enabled: yes
daemon_reload: yes