Commit ebab6517 authored by nono's avatar nono 💻
Browse files

Mise à jour de la procédure d'installation

parent e2bf5d4b
......@@ -75,5 +75,14 @@
chdir: /home/don/don/
register: composer_output_install
failed_when: composer_output_install.rc != 0 or composer_output_install.rc > 0
become: true
become_user: don
# become: no
# become_user: don
- name: Vérification des permissions du dossier don
file:
state: directory
path: /home/don/don/
owner: don
group: don
mode: 0766
recurse: true
......@@ -18,19 +18,35 @@
shell: make reset-db
args:
chdir: /home/don/don
become: true
become_user: don
# become: true
# become_user: don
- name: Lancement du serveur de test
shell: make server-start
args:
chdir: /home/don/don
- name: Attendons 5 secondes que le serveur soit bien lancé...
wait_for:
# On triche un peu
timeout: 30
- name: Exécution de tests
shell: make test
args:
chdir: /home/don/don
become: true
become_user: don
# become: true
# become_user: don
- name: Arrêt du serveur de test
shell: make server-stop
args:
chgir: /home/don/don
- name: Installation du site de don
shell: make install
args:
chdir: /home/don/don
become: true
become_user: don
# become: true
# become_user: don
......@@ -7,6 +7,6 @@
- name: Installation des dépendances pour le site de don.
apt:
name: ['mariadb-server','default-mysql-client','gettext','git','bash','php','php-zip','php-mysql','pdftk','texlive-latex-base']
name: ['mariadb-server','default-mysql-client','gettext','git','bash','php','php-zip','php-dom','php-mbstring','make','php-curl','php-mysql','pdftk','texlive-latex-base']
state: present
update_cache: true
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment