From 4490b84c15a2aa8cb7971126e89ece4a4b3df59d Mon Sep 17 00:00:00 2001 From: Johan Largy Date: Tue, 31 Jan 2023 09:35:35 +0100 Subject: [PATCH] ajout script python3 --- roles/wireguard-l/tasks/main.yml | 2 -- roles/wireguard-r/tasks/main.yml | 2 -- scripts/r-vp1-post.sh | 2 ++ scripts/r-vp2-post.sh | 3 +++ 4 files changed, 5 insertions(+), 4 deletions(-) create mode 100644 scripts/r-vp1-post.sh create mode 100644 scripts/r-vp2-post.sh diff --git a/roles/wireguard-l/tasks/main.yml b/roles/wireguard-l/tasks/main.yml index 78a3045..1fd516c 100644 --- a/roles/wireguard-l/tasks/main.yml +++ b/roles/wireguard-l/tasks/main.yml @@ -15,8 +15,6 @@ state: present -- name: copie du fichier de configuration depuis r-vp1 - command: "wget http://r-vp1.gsb.adm:8000/wg0-b.conf" #- name: renommage du fichier de configuration # command: "mv /etc/wireguard/wg0-b.conf /etc/wireguard/wg0.conf" diff --git a/roles/wireguard-r/tasks/main.yml b/roles/wireguard-r/tasks/main.yml index 270e156..f879039 100644 --- a/roles/wireguard-r/tasks/main.yml +++ b/roles/wireguard-r/tasks/main.yml @@ -40,5 +40,3 @@ enabled: yes state: restarted -- name: ouverture port 8000 pour copie fichier config - command: "cd /root/confwg/ && python3 -m http.server 8000 &" diff --git a/scripts/r-vp1-post.sh b/scripts/r-vp1-post.sh new file mode 100644 index 0000000..0054163 --- /dev/null +++ b/scripts/r-vp1-post.sh @@ -0,0 +1,2 @@ +#!/bin/bash +cd /root/confwg/ && python3 -m http.server 8000 & diff --git a/scripts/r-vp2-post.sh b/scripts/r-vp2-post.sh new file mode 100644 index 0000000..7b61d08 --- /dev/null +++ b/scripts/r-vp2-post.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +wget http://r-vp1.gsb.adm:8000/wg0-b.qconf