Another attempt on fixing the mysql_user idempotency.

This commit is contained in:
Andrea Dell'Amico 2025-02-06 19:45:19 +01:00
parent 058c5f6dbb
commit 3a584c109a
Signed by: adellam
GPG Key ID: 147ABE6CEB9E20FF
1 changed files with 4 additions and 4 deletions

View File

@ -7,11 +7,11 @@
password: "{{ mysql_root_password }}"
login_unix_socket: "{{ mysql_socket }}"
when: mysql_root_password is defined
with_items:
- localhost
loop:
- 127.0.0.1
- ::1
- '{{ ansible_hostname }}'
- localhost
ignore_errors: true
tags: ['mysql', 'mysql_root']
@ -22,11 +22,11 @@
password: ""
login_unix_socket: "{{ mysql_socket }}"
when: mysql_root_password is not defined
with_items:
- localhost
loop:
- 127.0.0.1
- ::1
- '{{ ansible_hostname }}'
- localhost
ignore_errors: true
tags: ['mysql', 'mysql_root']