We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c87e9c4 commit ea1f488Copy full SHA for ea1f488
tasks/secure-installation.yml
@@ -64,7 +64,7 @@
64
when: mysql_install_packages | bool or mysql_root_password_update
65
66
- name: Get list of hosts for the anonymous user.
67
- shell: mysql -NBe 'SELECT Host FROM mysql.user WHERE User = ""'
+ shell: "mysql --defaults-extra-file={{mysql_root_home}}/.my.cnf -NBe 'SELECT Host FROM mysql.user WHERE User = \"\"'"
68
register: mysql_anonymous_hosts
69
changed_when: false
70
check_mode: no
0 commit comments