In ansible, I try to automate setting up a database in mysql. But I block in the first step, I try to run run this command line
$ mysql_config_editor set login-path=test --host=localhost --user=username --password
And, what I want to do is something that looks like that
$ mysql_config_editor set login-path=test --host=localhost --user=username --password={{password}}
but that does not work. I tried a lot of things including
Ansible - Control commands when need users input when executing
and
Pass password to mysql_config_editor using variable in shell
but they do not work, do you have an idea ? It will be very helpful for me