How to hide/mask extra vars passed to ansible tower

2.2k Views Asked by At

I am passing a password value as extra vars to my playbook in Ansible tower 3.x. The playbook runs fine, however the password value is visible in the Extra vars section of executed jobs of Ansible tower.I have tried no-log: True but it does not help me as it probably controls the log display but not the data shown in extra vars section of executed jobs.

An important point to be noted here is that the ansible playbook is invoked from another 3rd party application as an automated task.

Is there any way that i can make ansible tower not show(or mask) this extra variable?

1

There are 1 best solutions below

2
On

We cannot mask/hide the extra_vars in job_template in Ansible Tower. But you can use Survey option to capture values for variables and select answer type as password, automatically value will be masked/hidden.. Refer Documentation here