Commit cb40a327 authored by Chris Croome's avatar Chris Croome

check current auth method

parent 6142bcf4
Pipeline #12635 passed with stage
in 23 seconds
---
- name: Debug mariadb_root_password
- name: Debug mariadb_root_auth
debug:
var: mariadb_root_auth
verbosity: 1
......@@ -34,6 +34,19 @@
tags:
- mariadb
- name: Check the current auth method
command: mysql -uroot -e "SELECT Plugin FROM user WHERE User='root';" mysql
register: mariadb_root_auth_plugin
tags:
- mariadb
- name: Debug current auth method
debug:
var: mariadb_root_auth_plugin.stdout
verbosity: 1
tags:
- mariadb
- name: Set the MariaDB root password
include_tasks: mariadb_root_password.yml
when: ( mariadb_root_auth is defined ) and ( mariadb_root_auth == "password" )
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment