Commit 964760c3 authored by Chris Croome's avatar Chris Croome

checks added

parent 548643a3
Pipeline #12638 passed with stage
in 23 seconds
......@@ -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
- 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
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment