Role service-dhcpd: add override settings for kea-dhcp4-server service unit

This commit is contained in:
Tobias Hachmer 2018-02-05 15:31:40 +01:00
parent d3298d4a3c
commit 3e311bd995
2 changed files with 22 additions and 0 deletions

View file

@ -5,6 +5,25 @@
state: present state: present
with_items: "{{ kea_packages }}" with_items: "{{ kea_packages }}"
- name: create systemd override dir for kea-dhcp4-server.service
file:
path: /etc/systemd/system/kea-dhcp4-server.service.d
state: directory
owner: root
group: root
mode: 0755
- name: configure systemd unit overrides
template:
src: kea_dhcp4_server_service_overrides.j2
dest: /etc/systemd/system/kea-dhcp4-server.service.d/override.conf
owner: root
group: root
mode: 0644
notify:
- reload systemd
- restart kea-dhcp4-server
- name: configure kea dhcp server - name: configure kea dhcp server
template: template:
src: kea_dhcp4.conf.j2 src: kea_dhcp4.conf.j2

View file

@ -0,0 +1,3 @@
[Service]
Restart=on-failure
RestartSec=10s