Best solutions to prevent password/secret writing to log file

I want to run a python from ansible and need to user a password in it.
With default behavior you see the password in the logging.
I know the option no_log: true but the nI have no logging.
I want the sdtout logging but not see the passwords

What is the best way to accomplish that?

Could you provide some more details regarding the task in question?

1 Like

Hi,

A subsequent debug task with loop_control ?