summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorToshio Kuratomi <toshio@fedoraproject.org>2015-05-27 13:39:09 -0700
committerToshio Kuratomi <toshio@fedoraproject.org>2015-05-27 13:39:09 -0700
commitb91532aff358826dd9d3c04588b0cd8dcebe5a69 (patch)
treed3b1042b15522b7bfdc59a12eece3ae3822b8687
parentb72a912562a0174cf0228d4fd8bd217e2161e417 (diff)
downloadansible-b91532aff358826dd9d3c04588b0cd8dcebe5a69.tar.gz
Drop the mysql test db first so that we test with a clean slate.
-rw-r--r--test/integration/roles/test_mysql_db/tasks/main.yml5
1 files changed, 5 insertions, 0 deletions
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 <http://www.gnu.org/licenses/>.
# ============================================================
+
+- 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