mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2024-11-26 06:31:04 +01:00
21 lines
571 B
YAML
21 lines
571 B
YAML
- name: create database
|
|
mysql_db:
|
|
name: "{{database_databasename}}"
|
|
state: present
|
|
login_user: root
|
|
login_password: "{{central_mariadb_root_password}}"
|
|
login_host: 127.0.0.1
|
|
login_port: 3306
|
|
listen: create database
|
|
|
|
- name: create database user
|
|
mysql_user:
|
|
name: "{{database_username}}"
|
|
password: "{{database_password}}"
|
|
priv: '{{database_databasename}}.*:ALL'
|
|
state: present
|
|
login_user: root
|
|
login_password: "{{central_mariadb_root_password}}"
|
|
login_host: 127.0.0.1
|
|
login_port: 3306
|
|
listen: create database |