mirror of
https://github.com/ansible-collections/community.mysql.git
synced 2025-04-08 19:50:31 -07:00
fix tests failing when recreating root account
This commit is contained in:
parent
62e9ad7812
commit
008f92230b
1 changed files with 6 additions and 6 deletions
|
@ -167,16 +167,16 @@
|
||||||
loop_control:
|
loop_control:
|
||||||
label: "{{ item.name }}@{{ item.host }}"
|
label: "{{ item.name }}@{{ item.host }}"
|
||||||
register: recreate_users_result
|
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 ============================
|
# ================================== 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
|
- name: Mysql_info users_privs | Cleanup users_privs
|
||||||
community.mysql.mysql_user:
|
community.mysql.mysql_user:
|
||||||
name: "{{ item }}"
|
name: "{{ item }}"
|
||||||
|
|
Loading…
Add table
Reference in a new issue