ajout script python3
This commit is contained in:
parent
46ad76af18
commit
4490b84c15
@ -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"
|
||||
|
@ -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
2
scripts/r-vp1-post.sh
Normal file
@ -0,0 +1,2 @@
|
||||
#!/bin/bash
|
||||
cd /root/confwg/ && python3 -m http.server 8000 &
|
3
scripts/r-vp2-post.sh
Normal file
3
scripts/r-vp2-post.sh
Normal file
@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
|
||||
wget http://r-vp1.gsb.adm:8000/wg0-b.qconf
|
Loading…
x
Reference in New Issue
Block a user