Hello!
The mysql ansible role was not working for me (root password did not get set properly and mysql_user tasks failed with an 'Access Denied' error).
I therefore reworked the mysql ansible role, replacing the call to mysql_secure_installation with (hopefully completely) equivalent ansible tasks, which seems to be best practice according to here.
Furthermore I replaced the deprecated 'sudo' privilege escalation method with 'become'.
Ansible Docs state:
As of 1.9 become supersedes the old sudo/su, while still being backwards compatible.
Hello! The mysql ansible role was not working for me (root password did not get set properly and
mysql_user
tasks failed with an 'Access Denied' error). I therefore reworked the mysql ansible role, replacing the call tomysql_secure_installation
with (hopefully completely) equivalent ansible tasks, which seems to be best practice according to here.Furthermore I replaced the deprecated 'sudo' privilege escalation method with 'become'. Ansible Docs state: