From e8c0745257cd460436f833bcdf3bd8b73737054a Mon Sep 17 00:00:00 2001 From: theo vallet Date: Tue, 26 Jan 2021 14:54:44 +0100 Subject: [PATCH] modif mariadb python et socket --- roles/mariadb-ab/tasks/main.yml | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/roles/mariadb-ab/tasks/main.yml b/roles/mariadb-ab/tasks/main.yml index f09c015..66b92da 100644 --- a/roles/mariadb-ab/tasks/main.yml +++ b/roles/mariadb-ab/tasks/main.yml @@ -2,15 +2,23 @@ - name: Installation des paquets python-mysqldb mariadb-server apt: name: - - python-mysqldb - - mariadb-server + - python3-mysqldb + - mariadb-server + - python3-passlib state: present +- name: python3 par defaut + alternatives: + link: /usr/bin/python + name: python + path: /usr/bin/python3 + priority: 10 + - name: Create mysql database mysql_db: name: "{{ maria_dbname }}" state: present - login_unix_socket: /var/run/mysqld_mysqld.sock + login_unix_socket: /var/run/mysqld/mysqld.sock - name: Creation de l'utilisateur mysql avec tous les privileges mysql_user: