We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d92ea65 + ea1f488 commit 45a748bCopy full SHA for 45a748b
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
- command: 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