Nov 13, 2019 in Ansible
Q: How to keep secrete data in a playbook?

1 Answer

0 votes
Nov 13, 2019
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
Click here to read more about Ansible
Click here to read more about Insurance

Related questions

0 votes
Feb 12, 2020 in Ansible