Compare commits

...

6 Commits

Author SHA1 Message Date
Johan Largy
4490b84c15 ajout script python3 2023-01-31 09:35:35 +01:00
Corentin Hurtret
46ad76af18 changement fichier fog 2023-01-31 09:25:26 +01:00
Johan Largy
019096fb7e modif 2023-01-31 09:04:14 +01:00
Elam Monnot
993c34b934 Merge branch 'main' of https://gitea.lyc-lecastel.fr/gadmin/gsb2023 2023-01-31 08:54:45 +01:00
Johan Largy
83bfd34e91 Merge branch 'main' of https://gitea.lyc-lecastel.fr/gadmin/gsb2023 2023-01-31 08:43:43 +01:00
Johan Largy
00289e1bcb modification 2023-01-31 08:43:14 +01:00
8 changed files with 20 additions and 23 deletions

View File

@@ -13,9 +13,9 @@
- goss - goss
# - snmp-agent # - snmp-agent
# - firewall-vpn-r # - firewall-vpn-r
- post
- wireguard-r - wireguard-r
# - x509-r
- fw-ferm - fw-ferm
- ssh-cli - ssh-cli
- syslog-cli - syslog-cli
- post

View File

@@ -10,5 +10,3 @@
copy: src=dhcpd.conf dest=/etc/dhcp/ copy: src=dhcpd.conf dest=/etc/dhcp/
notify: notify:
- restart isc-dhcp-server - restart isc-dhcp-server

View File

@@ -1,17 +1,15 @@
--- ---
- name: creation d'un repertoire fog
file:
path: /root/tools/fog
state: directory
- name: recuperation de l'archive d'installation fog sur git - name: recuperation de l'archive d'installation fog sur git
git: git:
repo: https://gitea.lyc-lecastel.fr/gadmin/fog.git repo: https://gitea.lyc-lecastel.fr/gadmin/fog.git
dest: /root/tools/fog/ dest: /root/tools/fog/
clone: yes clone: yes
update: yes update: yes
force: yes
#- name: Instructions - name: Modification fichier bash (desac UDPCast)
# tags: msg ansible.builtin.lineinfile:
# debug: msg='{{instructions}}' path: /root/tools/fog/lib/common/functions.sh
regexp: '^configureUDPCast\(\).*'
line: "configureUDPCast() {\nreturn"
backup: yes

View File

@@ -15,8 +15,6 @@
state: present 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 #- 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

@@ -40,5 +40,3 @@
enabled: yes enabled: yes
state: restarted state: restarted
- name: ouverture port 8000 pour copie fichier config
command: "cd ~/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