fix tests failing when recreating root account

This commit is contained in:
Laurent Indermuehle 2023-09-21 14:03:44 +02:00
parent 62e9ad7812
commit 008f92230b
No known key found for this signature in database
GPG key ID: 93FA944C9F34DD09

View file

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