Hello,
I’ve provisioned a server with the latest bedrock-ansible. Later, I wanted to change mysql root password. I took these steps:
- Updated the mysql root password in
grup_vars > staging
, - Executed the command
ansible-playbook -i hosts/staging server.yml
in order to reprovision the server.
All tasks were executed as expected until I reached the task Set root user password
. This is the failure message:
TASK: [mariadb | Set root user password] **************************************
failed: [xx.xxx.xx.xx] => (item=tarasiewicz) => {“failed”: true, “item”: “tarasiewicz”}
msg: unable to connect to database, check login_user and login_password are correct or ~/.my.cnf has the credentials
My questions are:
- Why is Ansible failing with reprovisioning?
- Where do I find vars named
login_user
andlogin_password
. I did not manage to localize them.
Thanks!