--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/585f5db7-0a84-458d-a728-2e988640e5a0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
If 5.6 - root password is placed in /root/.mysql_secure or same file and when you login first time with it into mysql server, it ask you to change password.
I have role to setup MySQL
For 5.3 - 5.5
Install packages, run mysql_install_db, generate password and place it into variable, generate unattended file like this:
<Empry line>
<Empry line>
PASSWORD
PASSWORD
and apply this file on server via "cat unattended_file | mysql_secure_install"