From 367a528058c66eb17accb74ca264adeec5a20c2b Mon Sep 17 00:00:00 2001 From: Laurent Indermuehle Date: Thu, 14 Sep 2023 16:46:08 +0200 Subject: [PATCH] Add reimport of users in the database to see if there is changes --- .../test_mysql_info/tasks/filter_users_privs.yml | 11 +++++++++++ 1 file changed, 11 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 2edfcb1..71a8468 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 @@ -79,6 +79,17 @@ - debug: var=result + - name: Insert the users privileges as input of mysql_user + community.mysql.mysql_user: + name: "{{ item.user }}" + host: "{{ item.host }}" + password: "{{ item.password }}" + encrypted: true + priv: "{{ item.priv | default(omit) }}" + resource_limits: "{{ item.resource_limits | default(omit) }}" + state: present + loop: "{{ result.users_privs }}" + # ================================== Cleanup ============================ - name: Mysql_info users_privs | Cleanup databases