From 008f92230b0f93bbe617f6be9fa64c6761777969 Mon Sep 17 00:00:00 2001 From: Laurent Indermuehle Date: Thu, 21 Sep 2023 14:03:44 +0200 Subject: [PATCH] fix tests failing when recreating root account --- .../test_mysql_info/tasks/filter_users_privs.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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 d98339e..ddcc8e9 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 @@ -167,16 +167,16 @@ loop_control: label: "{{ item.name }}@{{ item.host }}" register: recreate_users_result - failed_when: recreate_users_result is changed + failed_when: + - recreate_users_result is changed + when: + - item.name != 'root' + - item.name != 'mariadb.sys' + - item.name != 'mysql' # ================================== Cleanup ============================ - - name: Mysql_info users_privs | Cleanup databases - community.mysql.mysql_db: - name: users_privs_db - state: absent - - name: Mysql_info users_privs | Cleanup users_privs community.mysql.mysql_user: name: "{{ item }}"