modif mariadb
This commit is contained in:
parent
d953531bf8
commit
f030228008
@ -5,6 +5,7 @@
|
|||||||
- python3-mysqldb
|
- python3-mysqldb
|
||||||
- mariadb-server
|
- mariadb-server
|
||||||
- python3-passlib
|
- python3-passlib
|
||||||
|
- python3-pymysql
|
||||||
state: present
|
state: present
|
||||||
|
|
||||||
- name: python3 par defaut
|
- name: python3 par defaut
|
||||||
@ -24,13 +25,19 @@
|
|||||||
mysql_user:
|
mysql_user:
|
||||||
name: "{{ maria_dbuser }}"
|
name: "{{ maria_dbuser }}"
|
||||||
password: "{{ maria_dbpasswd }}"
|
password: "{{ maria_dbpasswd }}"
|
||||||
priv: "*.*:ALL,GRANT"
|
priv: '*.*:ALL,GRANT'
|
||||||
login_unix_socket: /var/run/mysqld/mysqld.sock
|
login_unix_socket: /var/run/mysqld/mysqld.sock
|
||||||
with_items:
|
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
|
- 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
|
- name: Redemarrage du service mariadb
|
||||||
shell: service mariadb restart
|
service:
|
||||||
|
name: mariadb
|
||||||
|
state: restarted
|
||||||
|
Loading…
x
Reference in New Issue
Block a user