Premier commit
This commit is contained in:
15
roles/mariadb/tasks/main.yml
Normal file
15
roles/mariadb/tasks/main.yml
Normal file
@ -0,0 +1,15 @@
|
||||
---
|
||||
# tasks file for mariadb
|
||||
- name: Installation de python-mysqldb
|
||||
apt: name=python-mysqldb state=present
|
||||
|
||||
- name: Installation de mariadb-server
|
||||
apt: name=mariadb-server state=present
|
||||
|
||||
- name: Create mysql database
|
||||
mysql_db: name={{ maria_dbname }} state=present
|
||||
|
||||
- name: Commenter la ligne
|
||||
replace: dest=/etc/mysql/mariadb.conf.d/50-server.cnf
|
||||
regexp='bind-address = 127.0.0.1'
|
||||
replace='#bind-address = 127.0.0.1'
|
Reference in New Issue
Block a user