ajout script python3

This commit is contained in:
Johan Largy 2023-01-31 09:35:35 +01:00
parent 46ad76af18
commit 4490b84c15
4 changed files with 5 additions and 4 deletions

View File

@ -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"

View File

@ -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 &"

2
scripts/r-vp1-post.sh Normal file
View File

@ -0,0 +1,2 @@
#!/bin/bash
cd /root/confwg/ && python3 -m http.server 8000 &

3
scripts/r-vp2-post.sh Normal file
View File

@ -0,0 +1,3 @@
#!/bin/bash
wget http://r-vp1.gsb.adm:8000/wg0-b.qconf