mirror of
https://github.com/aljazceru/ansible-role-mysql.git
synced 2025-12-19 07:14:20 +01:00
Syntax adjustment for #28.
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
---
|
||||
- name: Get list of hosts for root user
|
||||
command: mysql -NBe 'SELECT Host from mysql.user WHERE User = "root" order by (Host="localhost") ASC'
|
||||
- name: Get list of hosts for the root user.
|
||||
command: mysql -NBe 'SELECT Host FROM mysql.user WHERE User = "root" ORDER BY (Host="localhost") ASC'
|
||||
register: mysql_root_hosts
|
||||
changed_when: false
|
||||
|
||||
|
||||
Reference in New Issue
Block a user