diff options
author | Guilhem Moulin <guilhem@fripost.org> | 2015-06-03 19:11:25 +0200 |
---|---|---|
committer | Guilhem Moulin <guilhem@fripost.org> | 2015-06-07 02:54:11 +0200 |
commit | 9eb84317dd1ecca2f43cb4d5ffa940753eb5984a (patch) | |
tree | 21245b28d4c1a5dfc00deaeacd8bc787c2e0adcc /roles/common-SQL | |
parent | 2b308feeeaf36017e4255c2685b7a5609b290957 (diff) |
SQL: Set empty passwords for auth_socket authentication.
Diffstat (limited to 'roles/common-SQL')
-rw-r--r-- | roles/common-SQL/tasks/main.yml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/roles/common-SQL/tasks/main.yml b/roles/common-SQL/tasks/main.yml index a26f5f4..b5c6773 100644 --- a/roles/common-SQL/tasks/main.yml +++ b/roles/common-SQL/tasks/main.yml @@ -9,37 +9,37 @@ # users. - mysql-common - mysql-server - python-mysqldb - name: Copy MySQL's configuration copy: src=etc/mysql/my.cnf dest=/etc/mysql/my.cnf owner=root group=root mode=0644 register: r notify: - Restart MySQL # We need to restart now and load the relevant authplugin before we # connect to the database. - meta: flush_handlers # XXX Dirty fix for #742046 - name: Force root to use UNIX permissions - mysql_user: name=root auth_plugin=auth_socket + mysql_user: name=root password= auth_plugin=auth_socket state=present - name: Disallow anonymous and TCP/IP root login mysql_user: name={{ item.name|default('') }} host={{ item.host }} state=absent with_items: - { host: '{{ inventory_hostname_short }}' } - { host: 'localhost' } - { host: '127.0.0.1'} - { host: '::1'} - { name: root, host: '{{ inventory_hostname_short }}' } - { name: root, host: '127.0.0.1'} - { name: root, host: '::1'} - name: Start MySQL service: name=mysql state=started |