ansible-role-mysql icon indicating copy to clipboard operation
ansible-role-mysql copied to clipboard

task user setting fails with censored info when using password saved in ansible vault

Open solick opened this issue 3 years ago • 1 comments

I wanted to save my mysql password in my ansible vault. Unfortunately the role fails here:

TASK [geerlingguy.mysql : Ensure MySQL users are present.] *********************************************************************************************************************************** fatal: [XXX]: FAILED! => {"censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result"}

When I save the passwords in a host var file - no problem.

Because no_log is not configurable, it is not possible to use the role with vault saved passwords.

best solution would be to not print the password or make no_log configurable.

UPDATE:

Strange enough, after adding vars_files and link to the vault file explicitly to the playbook the error vanished.

solick avatar Jun 04 '22 17:06 solick

This issue has been marked 'stale' due to lack of recent activity. If there is no further activity, the issue will be closed in another 30 days. Thank you for your contribution!

Please read this blog post to see the reasons why I mark issues as stale.

stale[bot] avatar Sep 19 '22 23:09 stale[bot]

This issue has been closed due to inactivity. If you feel this is in error, please reopen the issue or file a new issue with the relevant details.

stale[bot] avatar Nov 02 '22 06:11 stale[bot]

This issue has been closed due to inactivity. If you feel this is in error, please reopen the issue or file a new issue with the relevant details.

stale[bot] avatar Dec 24 '22 09:12 stale[bot]