1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-13 11:42:08 +00:00
iiab/roles/network/tasks/dnsmasq.yml

25 lines
634 B
YAML
Raw Normal View History

- name: Install dnsmasq
package: name=dnsmasq state=present
2018-06-01 15:53:34 +00:00
- name: Stop dnsmasq
service:
name: dnsmasq
state: stopped
- name: Configure dhcpd
template: src={{ item.src }}
dest={{ item.dest }}
owner=root
group=root
mode={{ item.mode }}
with_items:
# - { src: 'network/dnsmasq.service.rh', dest: '/etc/systemd/system/dnsmasq.service', mode: '0644' }
- { src: 'roles/network/templates/network/dnsmasq.conf.j2', dest: '/etc/dnsmasq.conf', mode: '644' }
2018-06-01 15:53:34 +00:00
- name: Start dnsmasq
systemd:
name: dnsmasq
state: restarted
enabled: yes
daemon_reload: yes