How to flush MySQL privileges using ansible
Hello all,
I am new to ansible and I am attempting build my server stack using it. I am at the point where I am trying to change the root password for mysql and flush the privileges but am having a hard time getting this to work. I have seen cases where people have copied over a my.cnf file into the users directory to change the root password while others have changed it by logging into mysql. I don't know the benefits / difference to doing one or the other. I simply prefer to not have to transfer a file if I can get away with it. My code seems to execute without any errors but the mysql server password is not changed. I am wondering what I am overlooking. Here is currently what my code looks like (code is to provision the latest version Ubuntu version) : Code:
--- |
"The . . . r-o-o-t(!!!) ... :eek: ... password?!?!?!"
|
I'm sorry. I don't follow.
|
All times are GMT -5. The time now is 03:38 AM. |