Compare commits

..

13 Commits

Author SHA1 Message Date
Elam Monnot
a7a9752aa0 normalement ça marche 2023-01-31 10:08:48 +01:00
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
Elam Monnot
fe914d9894 help me 2023-01-31 08:53:25 +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
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
Elam Monnot
aadc552dc3 role lb-web 2023-01-31 08:21:05 +01:00
13 changed files with 41 additions and 41 deletions

View File

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

View File

@@ -109,12 +109,12 @@ log-facility local7;
#DHCP pour le réseau wifi
#subnet 172.16.65.0 netmask 255.255.255.0 {
# range 172.16.65.1 172.16.65.100;
# option domain-name-servers ns1.internal.example.org;
# option domain-name "internal.example.org";
# option routers 10.5.5.1;
# option broadcast-address 10.5.5.31;
# default-lease-time 600;
# max-lease-time 7200;
# option domain-name-servers ns1.internal.example.org;
# option domain-name "internal.example.org";
# option routers 10.5.5.1;
# option broadcast-address 10.5.5.31;
# default-lease-time 600;
# max-lease-time 7200;
#}
#DHCP pour le réseau USER

View File

@@ -10,5 +10,3 @@
copy: src=dhcpd.conf dest=/etc/dhcp/
notify:
- 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
git:
repo: https://gitea.lyc-lecastel.fr/gadmin/fog.git
dest: /root/tools/fog/
clone: yes
update: yes
force: yes
#- name: Instructions
# tags: msg
# debug: msg='{{instructions}}'
- name: Modification fichier bash (desac UDPCast)
ansible.builtin.lineinfile:
path: /root/tools/fog/lib/common/functions.sh
regexp: '^configureUDPCast\(\).*'
line: "configureUDPCast() {\nreturn"
backup: yes

View File

@@ -10,4 +10,4 @@
dest: /etc/fstab
regexp: ''
insertafter: EOF
line: '192.168.102.253:/home/wordpress /var/www/html/wordpress nfs soft,timeo=5,intr,rsize=8192,wsize=8192,wsize=8192 0 0'
line: '192.168.102.253:/home/ /var/www/html/wordpress nfs soft,timeo=5,intr,rsize=8192,wsize=8192,wsize=8192 0 0'

View File

@@ -60,7 +60,7 @@
replace:
path: /home/wordpress/wp-config.php
regexp: "localhost"
replace: "192.168.102.253"
replace: "192.168.102.254"
backup: yes
- name: 55 - relance nfs

View File

@@ -1,10 +1,13 @@
- name:
- apache2
- php
- php-mbstring
- php-mysql
- mariadb-client
state: present
---
- name: installation des paquets web
apt:
name:
- apache2
- php
- php-mbstring
- php-mysql
- mariadb-client
state: present
- name: install nfs-common
apt:
@@ -15,11 +18,11 @@
blockinfile:
path: /etc/fstab
block: |
192.168.102.253:/exports/wordpress /var/www/html nfs soft,timeo=5,intr,rsize=8192,wsize=8192,wsize=8192 0 0
192.168.102.253:/home/wordpress /var/www/html nfs soft,timeo=5,intr,rsize=8192,wsize=8192,wsize=8192 0 0
- name: monte export wordpress
ansible.posix.mount:
path: /var/www/html
state: mounted
fstype: nfs
src: 192.168.102.253:/exports/wordpress
#- name: monte export wordpress
# ansible.posix.mount:
# path: /var/www/html
# state: mounted
# fstype: nfs
# src: 192.168.102.253:/exports/wordpress

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 ~/confwg/ && python3 -m http.server 8000 &"

View File

@@ -4,6 +4,6 @@
roles:
- base
- post
- lb-web
- snmp-agent
- post

View File

@@ -4,6 +4,6 @@
roles:
- base
- post
- lb-web
- snmp-agent
- post

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