Browse code

Drop the mysql test db first so that we test with a clean slate.

Toshio Kuratomi authored on 2015/05/28 05:39:09
Showing 1 changed files
... ...
@@ -17,6 +17,11 @@
17 17
 # along with Ansible.  If not, see <http://www.gnu.org/licenses/>.
18 18
 
19 19
 # ============================================================
20
+
21
+- name: make sure the test database is not there
22
+  command: mysql "-e drop database '{{db_name}}';"
23
+  ignore_errors: True
24
+
20 25
 - name: test state=present for a database name (expect changed=true)
21 26
   mysql_db: name={{ db_name }} state=present
22 27
   register: result