Compare commits

...

6 Commits

5 changed files with 21 additions and 16 deletions

View File

@ -1,12 +1,13 @@
---
- name: installation des paquets web
apt:
- apache2
- php
- php-mbstring
- php-mysql
- mariadb-client
state: present
name:
- apache2
- php
- php-mbstring
- php-mysql
- mariadb-client
state: present
- name: install nfs-common
apt:
@ -19,9 +20,9 @@
block: |
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.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

@ -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 &"

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