diff --git a/tests/integration/targets/test_mysql_db/tasks/main.yml b/tests/integration/targets/test_mysql_db/tasks/main.yml index 139d5bb..de554c4 100644 --- a/tests/integration/targets/test_mysql_db/tasks/main.yml +++ b/tests/integration/targets/test_mysql_db/tasks/main.yml @@ -28,8 +28,8 @@ - name: remove database if it exists command: > - "{{ mysql_command }} -sse 'drop database {{ db_name }}'" - ignore_errors: True + {{ mysql_command }} -sse 'drop database if exists {{ db_name }}' + ignore_errors: true - name: make sure the test database is not there command: "{{ mysql_command }} {{ db_name }}"