Premier commit
This commit is contained in:
commit
518c7ab04b
49 files changed
+1120
No files matched your search
@@ -0,0 +1,20 @@
|
||||
---
|
||||
# MariaDB/tasks/import_sql.yml
|
||||
|
||||
- name: "Copy Script.sql"
|
||||
copy:
|
||||
src: "{{ role_path }}/files/{{ sql_script_file }}"
|
||||
dest: "/tmp/"
|
||||
owner: "ansible"
|
||||
group: "ansible"
|
||||
|
||||
- name: Import SQL script
|
||||
mysql_db:
|
||||
name: "{{ mariadb_database }}"
|
||||
state: import
|
||||
login_user: root
|
||||
login_password: "{{ mariadb_root_password }}"
|
||||
target: "/tmp/{{ sql_script_file }}"
|
||||
# target: "{{ role_path }}/files/{{ sql_script_file }}"
|
||||
notify: restart mariadb
|
||||
|
||||
Reference in new issue
Block a user