Commit 2ce48a22 authored by nono's avatar nono
Browse files

Modification de l'ordre des tâches et corrections de bugs

parent 4ce6a996
- name: Creation de l'utilisateur mySQL
mysql_user:
community.mysql.mysql_user:
name: "{{ don_sql_user }}"
password: "{{ don_sql_password }}"
priv: '*.*:ALL'
state: present
login_unix_socket: /var/run/mysqld/mysqld.sock
login_unix_socket: /var/run/mysqld/mysqld.sock
......@@ -43,11 +43,21 @@
become: true
become_user: don
- name: Création du dossier de don
file:
state: directory
path: /home/don/don/
owner: don
group: don
mode: 0775
recurse: true
- name: Statistiques du dossier git
stat:
path: /home/don/don/.git
register: don_git_patch_check
# Ce block ne clonera le dépot que si il n'existe pas déjà.
- name: Téléchargement du code source du site de don
git:
repo: https://git.laquadrature.net/lqdn-interne/don.git
......@@ -56,7 +66,6 @@
update: true
version: master
when: don_git_patch_check.stat.isdir is not defined or not don_git_patch_check.stat.isdir
# Le bloc au dessus ne clonera le dépot que si il n'existe pas déjà.
- name: Mise à jour du code source
git:
......@@ -66,15 +75,6 @@
version: master
force: true
- name: Création du dossier de don
file:
state: directory
path: /home/don/don/
owner: don
group: don
mode: 0775
recurse: true
- name: Installation des dépendances composer
shell: composer install -n
args:
......
......@@ -2,8 +2,8 @@
# tasks file for don-lqdn
- include: users.yml
- include: database.yml
- include: dependencies.yml
- include: database.yml
- include: install.yml
# - include: configuration.yml
- include: service.yml
......@@ -3,6 +3,11 @@
name: don
state: present
- name: Creation du groupe www-data
group:
name: www-data
state: present
- name: Mise en place de l'utilisateur don
user:
name: don
......
Markdown is supported
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