Another attempt on fixing the mysql_user idempotency.
This commit is contained in:
parent
058c5f6dbb
commit
3a584c109a
|
@ -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']
|
||||
|
||||
|
|
Loading…
Reference in New Issue