Skip to content

Commit e92c2ce

Browse files
authored
Merge pull request geerlingguy#513 from pulse-mind/pulse-mind-patch-update-root-password
Bug corrected when updating mysql root password
2 parents 5bb966f + 395f9ed commit e92c2ce

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tasks/secure-installation.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@
4242
- name: Update MySQL root password for localhost root account (5.7.x).
4343
shell: >
4444
mysql -u root -NBe
45-
'ALTER USER "{{ mysql_root_username }}"@"{{ item }}"
46-
IDENTIFIED WITH mysql_native_password BY "{{ mysql_root_password }}"; FLUSH PRIVILEGES;'
45+
"ALTER USER '{{ mysql_root_username }}'@'{{ item }}'
46+
IDENTIFIED WITH mysql_native_password BY '{{ mysql_root_password }}'; FLUSH PRIVILEGES;"
4747
with_items: "{{ mysql_root_hosts.stdout_lines|default([]) }}"
4848
when: >
4949
((mysql_install_packages | bool) or mysql_root_password_update)

0 commit comments

Comments
 (0)