Compare commits

..

5 Commits

Author SHA1 Message Date
Elam Monnot
8f3f364152 please work fine 2023-01-31 08:35:13 +01:00
Elam Monnot
e36f8af7e6 Merge branch 'main' of https://gitea.lyc-lecastel.fr/gadmin/gsb2023 2023-01-31 08:30:44 +01:00
Elam Monnot
495546fae7 il faut marcher maintenant 2023-01-31 08:29:37 +01:00
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
3 changed files with 13 additions and 8 deletions

View File

@@ -1,6 +1,7 @@
--- ---
- name: installation des paquets web - name: installation des paquets web
apt: apt:
name:
- apache2 - apache2
- php - php
- php-mbstring - php-mbstring

View File

@@ -14,8 +14,9 @@
name: wireguard-tools name: wireguard-tools
state: present 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 #- name: renommage du fichier de configuration
# command: "mv /etc/wireguard/wg0-b.conf /etc/wireguard/wg0.conf" # command: "mv /etc/wireguard/wg0-b.conf /etc/wireguard/wg0.conf"

View File

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