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