From 811b7c246f667be0b96c34c484bd66ecebc7bcf4 Mon Sep 17 00:00:00 2001 From: bb Date: Mon, 11 Jan 2021 09:11:54 +0100 Subject: [PATCH] Syntaxe + login_unix_socket --- roles/itil/tasks/main.yml | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/roles/itil/tasks/main.yml b/roles/itil/tasks/main.yml index 38a04a2..44b13e3 100644 --- a/roles/itil/tasks/main.yml +++ b/roles/itil/tasks/main.yml @@ -29,7 +29,9 @@ file: path=/etc/nginx/sites-enabled/default state=absent - name: Creation fichier block nginx - template: src=block.j2 dest=/etc/nginx/sites-enabled/glpi + template: + src: block.j2 + dest: /etc/nginx/sites-enabled/glpi - name: Remplacement dans le fichier de conf php du timeout replace: @@ -42,13 +44,17 @@ - restart nginx - name: Creation de la base de donnee mysql - mysql_db: name={{ glpi_dbname }} state=present + mysql_db: + name: "{{ glpi_dbname }}" + state: present + login_unix_socket: /var/run/mysqld/mysqld.sock - name: Creation de l'utilisateur mysql avec tous les privileges mysql_user: - name={{ glpi_dbuser }} - password={{ glpi_dbpasswd }} - priv=*.*:ALL + name: "{{ glpi_dbuser }}" + password: "{{ glpi_dbpasswd }}" + priv: '*.*:ALL,GRANT' + login_unix_socket: /var/run/mysqld/mysqld.sock - name: Creation du repertoire {{ glpi_dir }} file: