mirror of
https://github.com/ansible-collections/community.mysql.git
synced 2025-08-27 16:31:47 -07:00
Fix "command not found" and "database doesn't exists"
This commit is contained in:
parent
4a87771a77
commit
d37871e148
1 changed files with 2 additions and 2 deletions
|
@ -28,8 +28,8 @@
|
||||||
|
|
||||||
- name: remove database if it exists
|
- name: remove database if it exists
|
||||||
command: >
|
command: >
|
||||||
"{{ mysql_command }} -sse 'drop database {{ db_name }}'"
|
{{ mysql_command }} -sse 'drop database if exists {{ db_name }}'
|
||||||
ignore_errors: True
|
ignore_errors: true
|
||||||
|
|
||||||
- name: make sure the test database is not there
|
- name: make sure the test database is not there
|
||||||
command: "{{ mysql_command }} {{ db_name }}"
|
command: "{{ mysql_command }} {{ db_name }}"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue