1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

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

This commit is contained in:
Toshio Kuratomi 2015-05-27 13:39:09 -07:00
parent b72a912562
commit b91532aff3

View file

@ -17,6 +17,11 @@
# along with Ansible. If not, see <http://www.gnu.org/licenses/>. # 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) - name: test state=present for a database name (expect changed=true)
mysql_db: name={{ db_name }} state=present mysql_db: name={{ db_name }} state=present
register: result register: result