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