Skip to content

Commit

Permalink
Merge pull request #513 from pulse-mind/pulse-mind-patch-update-root-…
Browse files Browse the repository at this point in the history
…password

Bug corrected when updating mysql root password
  • Loading branch information
geerlingguy authored Jan 16, 2023
2 parents 5bb966f + 395f9ed commit e92c2ce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tasks/secure-installation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@
- name: Update MySQL root password for localhost root account (5.7.x).
shell: >
mysql -u root -NBe
'ALTER USER "{{ mysql_root_username }}"@"{{ item }}"
IDENTIFIED WITH mysql_native_password BY "{{ mysql_root_password }}"; FLUSH PRIVILEGES;'
"ALTER USER '{{ mysql_root_username }}'@'{{ item }}'
IDENTIFIED WITH mysql_native_password BY '{{ mysql_root_password }}'; FLUSH PRIVILEGES;"
with_items: "{{ mysql_root_hosts.stdout_lines|default([]) }}"
when: >
((mysql_install_packages | bool) or mysql_root_password_update)
Expand Down

0 comments on commit e92c2ce

Please sign in to comment.