Categories

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

1 Answer

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

Madanswer
Feb 12 in Ansible
May 8 in Ansible
May 8 in Ansible
...