Issue #60: 'Get list of hosts for the root user' fails to run.

This commit is contained in:
Jeff Geerling
2015-09-30 22:41:17 -05:00
parent 7f8cd51746
commit e6969ef0f7
3 changed files with 5 additions and 1 deletions

View File

@@ -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.