Compare commits

...

6 Commits

Author SHA1 Message Date
tl
9b287db7a5 ajout mariadb-server 2021-01-18 10:34:34 +01:00
tl
ccd153fbb6 adapt s-lb-web2 2021-01-18 10:23:06 +01:00
tl
105b85cc53 adaptation wordpress et mysql 2021-01-18 09:55:14 +01:00
ea24a4bda8 modif backup.sh 2021-01-18 09:36:22 +01:00
db1252d3b6 modif backup.sh 2021-01-18 09:18:52 +01:00
7383918973 modif backup.sh 2021-01-18 09:14:33 +01:00
4 changed files with 14 additions and 8 deletions

View File

@ -6,9 +6,9 @@
apt: name={{ item }} state=present
with_items:
- apache2
- mysql-server
- mariadb-server
- php-mysql
- php
- libapache2-mod-php
- php-mcrypt
# - php-mcrypt
- python-mysqldb

12
roles/s-backup/files/backup.sh Normal file → Executable file
View File

@ -6,22 +6,22 @@ SWIN=/tmp/s-win
[ -d "${BDIR}" ] || mkdir "${BDIR}/s-win"
[ -d "${SWIN}" ] || mkdir "${SWIN}"
mount -t cifs -o ro,vers3.0,username=u-backup,password=Azerty1+ //s-win/commun "{SWIN}"
mount -t cifs -o ro,vers=3.0,username=u-backup,password=Azerty1+ //s-win/commun "${SWIN}"
if [ $? != 0 ] ; then
echo "$0 : erreur montage"
echo "$0 : erreur montage ${SWIN}"
exit 1
fi
rsync -av "${SWIN}"/ /home/backup/s-win/commun
rsync -av "${SWIN}/" "${BDIR}/s-win/commun"
umount "${SWIN}"
mount -t cifs -o ro,vers3.0,username=u-backup,password=Azerty1+ //s-win/public "${SWIN}"
mount -t cifs -o ro,vers=3.0,username=u-backup,password=Azerty1+ //s-win/public "${SWIN}"
if [ $? != 0 ] ; then
echo "$0 : erreur montage"
exit 2
fi
rsync -av "{SWIN}"/ /home/backup/s-win/public
umount "{SWIN}"
rsync -av "${SWIN}/" "${BDIR}/s-win/public"
umount "${SWIN}"
exit 0

View File

@ -3,6 +3,9 @@
connection: local
roles:
- apache2
- php-fpm
- mysql
- base
- s-lb-web-ab
- snmp-agent

View File

@ -3,6 +3,9 @@
connection: local
roles:
- apache2
- php-fpm
- mysql
- base
- s-lb-web-ab
- snmp-agent