From 213d6b8a5a2956fb45ca7cf63952cf0339d30c26 Mon Sep 17 00:00:00 2001 From: Laurent Indermuehle Date: Thu, 21 Sep 2023 14:04:18 +0200 Subject: [PATCH] fix tests teardown error if db delete before users --- .../targets/test_mysql_info/tasks/filter_users_privs.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/integration/targets/test_mysql_info/tasks/filter_users_privs.yml b/tests/integration/targets/test_mysql_info/tasks/filter_users_privs.yml index ddcc8e9..363adac 100644 --- a/tests/integration/targets/test_mysql_info/tasks/filter_users_privs.yml +++ b/tests/integration/targets/test_mysql_info/tasks/filter_users_privs.yml @@ -190,6 +190,11 @@ - users_privs_proc - users_privs_usage_only + - name: Mysql_info users_privs | Cleanup databases + community.mysql.mysql_db: + name: users_privs_db + state: absent + - name: Mysql_info users_privs | Cleanup sql file for the procedure ansible.builtin.file: path: /root/create_procedure.sql