diff options
author | Guilhem Moulin <guilhem@fripost.org> | 2015-07-12 11:31:18 +0200 |
---|---|---|
committer | Guilhem Moulin <guilhem@fripost.org> | 2015-07-12 11:31:18 +0200 |
commit | b752a80935941eb07e7700d8cbab567d1a3f39c4 (patch) | |
tree | 3c3e907dc5445ec519bf8fc5daaf1ef12379eb69 /roles/common-SQL/tasks | |
parent | 99682f43e687552c0c536ed044afb7331d90a01d (diff) |
Rename 'mysql_user' plugin to 'mysql_user2' to avoid name collisions.
Diffstat (limited to 'roles/common-SQL/tasks')
-rw-r--r-- | roles/common-SQL/tasks/main.yml | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/roles/common-SQL/tasks/main.yml b/roles/common-SQL/tasks/main.yml index 9541be8..9064a68 100644 --- a/roles/common-SQL/tasks/main.yml +++ b/roles/common-SQL/tasks/main.yml @@ -11,46 +11,46 @@ - mysql-server - python-mysqldb # for the 'mysql_' munin plugin - libcache-cache-perl - 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 password= auth_plugin=auth_socket - state=present + mysql_user2: 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 + mysql_user2: 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 - name: Install 'mysql_' Munin wildcard plugin file: src=/usr/share/munin/plugins/mysql_ dest=/etc/munin/plugins/mysql_{{ item }} owner=root group=root state=link force=yes with_items: # sudo /usr/share/munin/plugins/mysql_ suggest |