Syntax adjustment for #29.

This commit is contained in:
Jeff Geerling
2015-04-10 15:51:22 -05:00
parent 7a6dd735ec
commit 0885558bb8

View File

@@ -21,12 +21,12 @@
group: root group: root
mode: 0600 mode: 0600
- name: Get list of hosts for anonymous user - name: Get list of hosts for the anonymous user.
command: mysql -NBe 'SELECT Host from mysql.user WHERE User = ""' command: mysql -NBe 'SELECT Host FROM mysql.user WHERE User = ""'
register: mysql_anonymous_hosts register: mysql_anonymous_hosts
changed_when: false changed_when: false
- name: Remove anonymous MySQL user. - name: Remove anonymous MySQL users.
mysql_user: mysql_user:
name: "" name: ""
host: "{{ item }}" host: "{{ item }}"