blob: 29d5bc59206972f2b748dd0b2932ec4fa975acfe (
plain) (
tree)
|
|
---
- name: Install dhcpd package
dnf:
name: dhcp-server
state: present
tags:
- packages
- 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
# vim: set ts=2 sw=2 et:
|