geerlingguy / ansible-role-mysql

Ansible Role - MySQL
https://galaxy.ansible.com/geerlingguy/mysql/
MIT License
1.05k stars 866 forks source link

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

Closed solick closed 1 year ago

solick commented 2 years ago

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.

stale[bot] commented 2 years ago

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] commented 2 years ago

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] commented 1 year ago

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.