Compare commits
9 Commits
v0.0.4e-ps
...
v0.0.4k-em
Author | SHA1 | Date | |
---|---|---|---|
fe914d9894 | |||
8f3f364152 | |||
e36f8af7e6 | |||
495546fae7 | |||
c29549a281 | |||
761d3a00bc | |||
aadc552dc3 | |||
3cbae83a73 | |||
e1323f22b8 |
@ -1,6 +1,6 @@
|
||||
# gsb2023
|
||||
|
||||
2023-01-25 ps
|
||||
2023-01-30 ps
|
||||
|
||||
Environnement et playbooks ansible pour le projet GSB 2023
|
||||
|
||||
@ -34,7 +34,7 @@ Prérequis :
|
||||
* **s-lb-web1** : Serveur Wordpress 1 Load Balancer
|
||||
* **s-lb-web2** : Serveur Wordpress 2 Load Balancer
|
||||
* **s-lb-db** : Serveur Mariadb pour Wordpress
|
||||
* **s-lb-nfs** : Serveur NFS pour application Wordpress
|
||||
* **s-nas** : Serveur NFS pour application Wordpress avec LB
|
||||
|
||||
|
||||
## Les playbooks
|
||||
|
@ -1,11 +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:
|
||||
@ -16,11 +18,11 @@
|
||||
blockinfile:
|
||||
path: /etc/fstab
|
||||
block: |
|
||||
192.168.56.6:/exports/wordpress /var/www/html nfs soft,timeo=5,intr,rsize=8192,wsize=8192,wsize=8192 0 0
|
||||
192.168.102.253:/exports/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.56.6:/exports/wordpress
|
||||
#- name: monte export wordpress
|
||||
# ansible.posix.mount:
|
||||
# path: /var/www/html
|
||||
# state: mounted
|
||||
# fstype: nfs
|
||||
# src: 192.168.102.253:/exports/wordpress
|
||||
|
@ -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"
|
||||
|
@ -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 &"
|
||||
|
@ -4,6 +4,6 @@
|
||||
|
||||
roles:
|
||||
- base
|
||||
- post
|
||||
- lb-web
|
||||
- snmp-agent
|
||||
- post
|
||||
|
@ -4,6 +4,6 @@
|
||||
|
||||
roles:
|
||||
- base
|
||||
- post
|
||||
- lb-web
|
||||
- snmp-agent
|
||||
- post
|
||||
|
Reference in New Issue
Block a user