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 }}"
|
password: "{{ mysql_root_password }}"
|
||||||
login_unix_socket: "{{ mysql_socket }}"
|
login_unix_socket: "{{ mysql_socket }}"
|
||||||
when: mysql_root_password is defined
|
when: mysql_root_password is defined
|
||||||
with_items:
|
loop:
|
||||||
- localhost
|
|
||||||
- 127.0.0.1
|
- 127.0.0.1
|
||||||
- ::1
|
- ::1
|
||||||
- '{{ ansible_hostname }}'
|
- '{{ ansible_hostname }}'
|
||||||
|
- localhost
|
||||||
ignore_errors: true
|
ignore_errors: true
|
||||||
tags: ['mysql', 'mysql_root']
|
tags: ['mysql', 'mysql_root']
|
||||||
|
|
||||||
|
@ -22,11 +22,11 @@
|
||||||
password: ""
|
password: ""
|
||||||
login_unix_socket: "{{ mysql_socket }}"
|
login_unix_socket: "{{ mysql_socket }}"
|
||||||
when: mysql_root_password is not defined
|
when: mysql_root_password is not defined
|
||||||
with_items:
|
loop:
|
||||||
- localhost
|
|
||||||
- 127.0.0.1
|
- 127.0.0.1
|
||||||
- ::1
|
- ::1
|
||||||
- '{{ ansible_hostname }}'
|
- '{{ ansible_hostname }}'
|
||||||
|
- localhost
|
||||||
ignore_errors: true
|
ignore_errors: true
|
||||||
tags: ['mysql', 'mysql_root']
|
tags: ['mysql', 'mysql_root']
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue