Skip to content
Snippets Groups Projects
Commit 964760c3 authored by Chris Croome's avatar Chris Croome
Browse files

checks added

parent 548643a3
No related branches found
Tags 1.1.1
No related merge requests found
Pipeline #12638 passed
......@@ -36,6 +36,7 @@
- name: Check the current auth method
command: mysql -uroot -B -N -e "SELECT Plugin FROM user WHERE User='root';" mysql
check_mode: false
register: mariadb_root_auth_plugin
tags:
- mariadb
......
......@@ -5,6 +5,7 @@
- name: Enable MariaDB root logins with a socket
command: mysql -uroot -p{{ mariadb_root_password }} -e "ALTER USER root@localhost IDENTIFIED VIA unix_socket; FLUSH PRIVILEGES;" mysql
when: ( mariadb_root_password is defined ) and ( mariadb_root_password | length > 0 )
- name: Remove /root/.my.cnf
file:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment