0 votes
in Ansible by
How to keep secrete data in a playbook?

1 Answer

0 votes
by
The following command is used to keep verbose output but hide the sensitive information from others who would like to be able to see the output.

-   name: secrete task  

shell: /user/bin/do_somthing -value={{secrete value}}  

no_log: True   

Also, the no_log attribute can apply to an entire play.

-   hosts: all  

no_log: True

Related questions

0 votes
asked Feb 12, 2020 in Ansible by miceperry
0 votes
asked Jul 30, 2021 in Ansible by DavidAnderson
...