Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Role fails when root password is already set #37

Open
djjuhasz opened this issue Dec 5, 2019 · 1 comment
Open

Role fails when root password is already set #37

djjuhasz opened this issue Dec 5, 2019 · 1 comment
Assignees

Comments

@djjuhasz
Copy link
Contributor

djjuhasz commented Dec 5, 2019

When running the play against a host with an existing MySQL root password it fails on:

TASK [artefactual.percona : Set the root password] ************************************************************************************
failed: [ubuntu-18.04-atom-test] (item=ubuntu-18) => {"ansible_loop_var": "item", "changed": false, "item": "ubuntu-18", "msg": "unable to connect to database: (1045, \"Access denied for user 'root'@'localhost' (using password: NO)\")"}
failed: [ubuntu-18.04-atom-test] (item=127.0.0.1) => {"ansible_loop_var": "item", "changed": false, "item": "127.0.0.1", "msg": "unable to connect to database: (1045, \"Access denied for user 'root'@'localhost' (using password: NO)\")"}
failed: [ubuntu-18.04-atom-test] (item=::1) => {"ansible_loop_var": "item", "changed": false, "item": "::1", "msg": "unable to connect to database: (1045, \"Access denied for user 'root'@'localhost' (using password: NO)\")"}
failed: [ubuntu-18.04-atom-test] (item=localhost) => {"ansible_loop_var": "item", "changed": false, "item": "localhost", "msg": "unable to connect to database: (1045, \"Access denied for user 'root'@'localhost' (using password: NO)\")"}
djjuhasz added a commit that referenced this issue Dec 6, 2019
Remove the `check_implicit_admin` flag when using `mysql_user` as it seems to
force the update to happen without sending a root password, which causes
the script to fail if a root password has been set previously.
@djjuhasz djjuhasz self-assigned this Dec 6, 2019
@misilot
Copy link
Contributor

misilot commented Mar 30, 2021

This fails even when standing up a brand new system where the root password is null on a fresh install on Ubuntu 16.04

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants