File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 43
43
shell : >
44
44
mysql -u root -NBe
45
45
'ALTER USER "{{ mysql_root_username }}"@"{{ item }}"
46
- IDENTIFIED WITH mysql_native_password BY "{{ mysql_root_password }}";'
46
+ IDENTIFIED WITH mysql_native_password BY "{{ mysql_root_password }}"; FLUSH PRIVILEGES; '
47
47
with_items : " {{ mysql_root_hosts.stdout_lines|default([]) }}"
48
48
when : >
49
49
((mysql_install_packages | bool) or mysql_root_password_update)
53
53
- name : Update MySQL root password for localhost root account (< 5.7.x).
54
54
shell : >
55
55
mysql -NBe
56
- 'SET PASSWORD FOR "{{ mysql_root_username }}"@"{{ item }}" = PASSWORD("{{ mysql_root_password }}");'
56
+ 'SET PASSWORD FOR "{{ mysql_root_username }}"@"{{ item }}" = PASSWORD("{{ mysql_root_password }}"); FLUSH PRIVILEGES; '
57
57
with_items : " {{ mysql_root_hosts.stdout_lines|default([]) }}"
58
58
when : >
59
59
((mysql_install_packages | bool) or mysql_root_password_update)
You can’t perform that action at this time.
0 commit comments