Ansible failure when reprovisioning a server

Hello,

I’ve provisioned a server with the latest bedrock-ansible. Later, I wanted to change mysql root password. I took these steps:

  1. Updated the mysql root password in grup_vars > staging,
  2. 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:

  1. Why is Ansible failing with reprovisioning?
  2. Where do I find vars named login_user and login_password. I did not manage to localize them.

Thanks!

I have the same problem. Reprovisioning the server is not possible.
Did you solve the problem in the meanwhile? Same over here.

Same problem here. Who has the golden answer? @jibazee

This thread is three years old and Trellis has changed dramatically in that time. Please give us some details on the problem you’re having. What have you tried?

I already figured something out myself @MWDelaney . Check this: Error Provisioning: mariaDb fails at setting root user password