Add reimport of users in the database to see if there is changes

This commit is contained in:
Laurent Indermuehle 2023-09-14 16:46:08 +02:00
parent 1c93c1bd66
commit 367a528058
No known key found for this signature in database
GPG key ID: 93FA944C9F34DD09

View file

@ -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