Change the order of the items in mysql_user.
This commit is contained in:
parent
90b6c81845
commit
058c5f6dbb
|
@ -8,10 +8,10 @@
|
||||||
login_unix_socket: "{{ mysql_socket }}"
|
login_unix_socket: "{{ mysql_socket }}"
|
||||||
when: mysql_root_password is defined
|
when: mysql_root_password is defined
|
||||||
with_items:
|
with_items:
|
||||||
- '{{ ansible_hostname }}'
|
- localhost
|
||||||
- 127.0.0.1
|
- 127.0.0.1
|
||||||
- ::1
|
- ::1
|
||||||
- localhost
|
- '{{ ansible_hostname }}'
|
||||||
ignore_errors: true
|
ignore_errors: true
|
||||||
tags: ['mysql', 'mysql_root']
|
tags: ['mysql', 'mysql_root']
|
||||||
|
|
||||||
|
@ -23,10 +23,10 @@
|
||||||
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:
|
with_items:
|
||||||
- '{{ ansible_hostname }}'
|
- localhost
|
||||||
- 127.0.0.1
|
- 127.0.0.1
|
||||||
- ::1
|
- ::1
|
||||||
- localhost
|
- '{{ ansible_hostname }}'
|
||||||
ignore_errors: true
|
ignore_errors: true
|
||||||
tags: ['mysql', 'mysql_root']
|
tags: ['mysql', 'mysql_root']
|
||||||
|
|
||||||
|
@ -49,9 +49,15 @@
|
||||||
tags: ['mysql', 'mysql_root']
|
tags: ['mysql', 'mysql_root']
|
||||||
|
|
||||||
- name: configure_root_access | Delete anonymous MySQL server user for localhost
|
- name: configure_root_access | Delete anonymous MySQL server user for localhost
|
||||||
community.mysql.mysql_user: user="" state="absent" login_unix_socket={{ mysql_socket }}
|
community.mysql.mysql_user:
|
||||||
|
user: ""
|
||||||
|
state: "absent"
|
||||||
|
login_unix_socket: "{{ mysql_socket }}"
|
||||||
tags: mysql
|
tags: mysql
|
||||||
|
|
||||||
- name: configure_root_access | Remove the MySQL test database
|
- name: configure_root_access | Remove the MySQL test database
|
||||||
community.mysql.mysql_db: db=test state=absent login_unix_socket={{ mysql_socket }}
|
community.mysql.mysql_db:
|
||||||
|
db: test
|
||||||
|
state: absent
|
||||||
|
login_unix_socket: "{{ mysql_socket }}"
|
||||||
tags: mysql
|
tags: mysql
|
||||||
|
|
Loading…
Reference in New Issue