blob: e591a850367938cc0b8d4949597cce0094212b4c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
---
- name: Configure dhcpd
template:
dest: '/etc/dhcp/dhcpd.conf'
src: dhcpd.conf.j2
owner: root
group: root
mode: 0644
notify:
- restart dhcpd
- name: Enable dhcpd service
systemd:
name: dhcpd.service
enabled: yes
masked: no
state: started
when: not chroot
- name: '- when in chroot'
command: systemctl enable dhcpd.service
args:
creates: '/etc/systemd/system/multi-user.target.wants/dhcpd.service'
when: chroot|bool
# vim: set ts=2 sw=2 et:
|