Closed ahrib closed 2 years ago
This issue has been marked 'stale' due to lack of recent activity. If there is no further activity, the issue will be closed in another 30 days. Thank you for your contribution!
Please read this blog post to see the reasons why I mark issues as stale.
This issue has been closed due to inactivity. If you feel this is in error, please reopen the issue or file a new issue with the relevant details.
Gday, firstly thanks for providing such useful things to the community.
Using Ubuntu 20.04 LTS and attempting to install mariadb on a clean docker image. The root password is never set and this prevents the mysql service stopping or restarting (e.g. service mysqk stop) and the playbook does not complete initial setup as expected.
I suspect the version check on this line needs a massage https://github.com/geerlingguy/ansible-role-mysql/blob/57c8638cc5e0659165c5e6b8c2f0f60884e29b46/tasks/secure-installation.yml#L50
output of mysql --version (with mariadb-server installed)
playbook
dockerfile used for local test environment
To help any others here is a workaround I have found to avoid service issues / cnf file issues. Specify a blank root password by adding the following to the play