From f030228008ee1a854eb127c3e3d131b9195f3a0b Mon Sep 17 00:00:00 2001 From: theo vallet Date: Tue, 26 Jan 2021 16:04:18 +0100 Subject: [PATCH] modif mariadb --- roles/mariadb-ab/tasks/main.yml | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/roles/mariadb-ab/tasks/main.yml b/roles/mariadb-ab/tasks/main.yml index 66b92da..6c7322e 100644 --- a/roles/mariadb-ab/tasks/main.yml +++ b/roles/mariadb-ab/tasks/main.yml @@ -5,6 +5,7 @@ - python3-mysqldb - mariadb-server - python3-passlib + - python3-pymysql state: present - name: python3 par defaut @@ -24,13 +25,19 @@ mysql_user: name: "{{ maria_dbuser }}" password: "{{ maria_dbpasswd }}" - priv: "*.*:ALL,GRANT" + priv: '*.*:ALL,GRANT' login_unix_socket: /var/run/mysqld/mysqld.sock with_items: - - 127.0.0.1 + - "127.0.0.1" +# - ::1 +# - localhost - name: Copie du fichier my.cnf pour autorises toutes les adresses sur le port 3306 - copy : src=my.cnf dest=/etc/mysql/ + copy: + src: my.cnf + dest: /etc/mysql/ - name: Redemarrage du service mariadb - shell: service mariadb restart + service: + name: mariadb + state: restarted