diff --git a/test/integration/roles/test_mysql_db/tasks/main.yml b/test/integration/roles/test_mysql_db/tasks/main.yml index 60a573bd0b..a059cd212a 100644 --- a/test/integration/roles/test_mysql_db/tasks/main.yml +++ b/test/integration/roles/test_mysql_db/tasks/main.yml @@ -17,6 +17,11 @@ # along with Ansible. If not, see . # ============================================================ + +- name: make sure the test database is not there + command: mysql "-e drop database '{{db_name}}';" + ignore_errors: True + - name: test state=present for a database name (expect changed=true) mysql_db: name={{ db_name }} state=present register: result