processone / ejabberd-vagrant-dev

Vagrant and Ansible script to create a VM preconfigured for ejabberd development
31 stars 13 forks source link

Better Ansible Role for MySQL Installation #5

Closed tnull closed 8 years ago

tnull commented 8 years ago

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.

mremond commented 8 years ago

Thanks !