Syntaxe + login_unix_socket

This commit is contained in:
bb 2021-01-11 09:11:54 +01:00
parent 9998a1f91a
commit 811b7c246f

View File

@ -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: