Compare commits

...

2 Commits

Author SHA1 Message Date
Johan Largy
c29549a281 Merge branch 'main' of https://gitea.lyc-lecastel.fr/gadmin/gsb2023 2023-01-31 08:24:56 +01:00
Johan Largy
761d3a00bc ajout copie distante 2023-01-31 08:23:21 +01:00
2 changed files with 6 additions and 2 deletions

View File

@ -14,8 +14,9 @@
name: wireguard-tools
state: present
#- name: copie du fichier de configuration depuis r-vp1
# command: "sshpass -p 'root' scp -r root@192.168.99.112:/root/confwg/wg0-b.conf /etc/wireguard/"
- 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

@ -39,3 +39,6 @@
name: wg-quick@wg0
enabled: yes
state: restarted
- name: ouverture port 8000 pour copie fichier config
command: "cd ~/confwg/ && python3 -m http.server 8000 &"