From f34a60a7cce01d0baedc7f8183b257913f486f98 Mon Sep 17 00:00:00 2001 From: Maciej Delmanowski Date: Sun, 29 Mar 2015 21:13:24 +0200 Subject: [PATCH] Make sure that /var/lib/dhcp/dhcpd6.leases exists --- tasks/main.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tasks/main.yml b/tasks/main.yml index b23321e..1758046 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -36,3 +36,7 @@ notify: [ 'Restart isc-dhcp-server' ] when: dhcpd_mode == 'server' +- name: Make sure that IPv6 lease file exists + command: touch /var/lib/dhcp/dhcpd6.leases creates=/var/lib/dhcp/dhcpd6.leases + when: dhcpd_ipversion == '6' +