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:
parent
b72a912562
commit
b91532aff3
1 changed files with 5 additions and 0 deletions
|
@ -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…
Reference in a new issue