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

pull/9682/merge
Toshio Kuratomi 9 years ago
parent b72a912562
commit b91532aff3

@ -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

Loading…
Cancel
Save