mirror of
https://github.com/aljazceru/ansible-role-mysql.git
synced 2025-12-19 04:04:21 +01:00
Issue #60: 'Get list of hosts for the root user' fails to run.
This commit is contained in:
@@ -3,6 +3,8 @@
|
||||
command: mysql -NBe 'SELECT Host FROM mysql.user WHERE User = "root" ORDER BY (Host="localhost") ASC'
|
||||
register: mysql_root_hosts
|
||||
changed_when: false
|
||||
sudo: yes
|
||||
sudo_user: "{{ mysql_user_provisioning }}"
|
||||
|
||||
# 'localhost' needs to be last for idempotency.
|
||||
- name: Update MySQL root password for localhost root account.
|
||||
|
||||
Reference in New Issue
Block a user