I am running a job in Jenkins which runs an Ansible playbook. The Ansible playbook fetches some credentials which I don't want it to be printed in the console log of Jenkins. The credentials are being used in the same playbook for a curl
command.
Is there a way to obfuscate just the password part by ****? If not, can the curl <...>
be hidden and just print its output in the log?
My code is something like this
- name: curl
shell: "curl -u '{{ user }}:{{ password }}'"