From 99ed9d3b27b1e8c295ad1ef24e6ca1c6c0e3b753 Mon Sep 17 00:00:00 2001 From: root Date: Wed, 5 Apr 2023 10:25:44 +0200 Subject: [PATCH] r-vp2 delais dhcp 2 seconde lancement --- roles/wireguard-l/tasks/main.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/roles/wireguard-l/tasks/main.yml b/roles/wireguard-l/tasks/main.yml index 1fd516c..7091506 100644 --- a/roles/wireguard-l/tasks/main.yml +++ b/roles/wireguard-l/tasks/main.yml @@ -14,7 +14,15 @@ name: wireguard-tools state: present - +- name: delais 2 secondes isc-dhcp-service + become: yes + lineinfile: + path: /etc/init.d/isc-dhcp-server + insertafter: '^\s+start\)$' + line: " sleep 2" + firstmatch: yes + state: present + backup: yes #- name: renommage du fichier de configuration # command: "mv /etc/wireguard/wg0-b.conf /etc/wireguard/wg0.conf"