Merge pull request #130 from UnrealQuester/master

Fix role failing in check mode
This commit is contained in:
Jeff Geerling
2016-06-12 16:47:33 -05:00
committed by GitHub

View File

@@ -9,6 +9,7 @@
command: mysql -NBe 'SELECT Host FROM mysql.user WHERE User = "root" ORDER BY (Host="localhost") ASC'
register: mysql_root_hosts
changed_when: false
always_run: true
# Note: We do not use mysql_user for this operation, as it doesn't always update
# the root password correctly. See: https://goo.gl/MSOejW
@@ -32,6 +33,7 @@
command: mysql -NBe 'SELECT Host FROM mysql.user WHERE User = ""'
register: mysql_anonymous_hosts
changed_when: false
always_run: true
- name: Remove anonymous MySQL users.
mysql_user: