|
|
|
@ -1,6 +1,8 @@
|
|
|
|
|
---
|
|
|
|
|
|
|
|
|
|
- meta: flush_handlers
|
|
|
|
|
tags:
|
|
|
|
|
- mysql_database
|
|
|
|
|
|
|
|
|
|
- name: Create SQL user {{ database_user }}
|
|
|
|
|
mysql_user:
|
|
|
|
@ -13,6 +15,8 @@
|
|
|
|
|
login_unix_socket: "{{ global_mysql_socket_path }}"
|
|
|
|
|
login_user: root
|
|
|
|
|
login_password: "{{ mysql_root_password }}"
|
|
|
|
|
tags:
|
|
|
|
|
- mysql_database
|
|
|
|
|
|
|
|
|
|
- name: Create SQL database {{ database_name }}
|
|
|
|
|
mysql_db:
|
|
|
|
@ -21,6 +25,8 @@
|
|
|
|
|
login_user: root
|
|
|
|
|
login_password: "{{ mysql_root_password }}"
|
|
|
|
|
register: create_database
|
|
|
|
|
tags:
|
|
|
|
|
- mysql_database
|
|
|
|
|
|
|
|
|
|
- name: Import SQL database template on creation
|
|
|
|
|
include_tasks:
|
|
|
|
|