modif mariadb python et socket
This commit is contained in:
parent
7776d94f6c
commit
e8c0745257
@ -2,15 +2,23 @@
|
|||||||
- name: Installation des paquets python-mysqldb mariadb-server
|
- name: Installation des paquets python-mysqldb mariadb-server
|
||||||
apt:
|
apt:
|
||||||
name:
|
name:
|
||||||
- python-mysqldb
|
- python3-mysqldb
|
||||||
- mariadb-server
|
- mariadb-server
|
||||||
|
- python3-passlib
|
||||||
state: present
|
state: present
|
||||||
|
|
||||||
|
- name: python3 par defaut
|
||||||
|
alternatives:
|
||||||
|
link: /usr/bin/python
|
||||||
|
name: python
|
||||||
|
path: /usr/bin/python3
|
||||||
|
priority: 10
|
||||||
|
|
||||||
- name: Create mysql database
|
- name: Create mysql database
|
||||||
mysql_db:
|
mysql_db:
|
||||||
name: "{{ maria_dbname }}"
|
name: "{{ maria_dbname }}"
|
||||||
state: present
|
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
|
- name: Creation de l'utilisateur mysql avec tous les privileges
|
||||||
mysql_user:
|
mysql_user:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user