# Is there a way to prevent debug module not to print passwords.

**URL:** <https://forum.ansible.com/t/is-there-a-way-to-prevent-debug-module-not-to-print-passwords/35390>\
**Category:** AWX Project\
**Created:** [June 22, 2021, 9:09am UTC](https://forum.ansible.com/t/is-there-a-way-to-prevent-debug-module-not-to-print-passwords/35390 "2021-06-22T09:09:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![anil\_reddy](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/anil_reddy/32/8043_2.png) [@anil\_reddy](https://forum.ansible.com/u/anil_reddy)\
**Post date:** [June 22, 2021, 9:09am UTC](https://forum.ansible.com/t/is-there-a-way-to-prevent-debug-module-not-to-print-passwords/35390/1 "2021-06-22T09:09:07Z")

</div>

Hi Team,

I am able to print password using debug module even though the password is marked as secret in the credential type.

Is there a way to prevent debug module to not to print the password when it is marked as secret in credential type?

Eg: playbook.

- name: Debug pass  
debug: msg: “{{ lookup(‘env’, ‘TOWER\_PASSWORD’) }}”

output is attached.

Appreciate your help.

Regards,  
Anil

> **(attachments)**
>
> ![password.png](https://us1.discourse-cdn.com/ansible/original/2X/4/4d67abc3f38bb7c1e22bcf8001c7830c904e4b20.png)

---

<div class="post-metadata">

**Author:** ![Christopher\_Meyers](https://avatars.discourse-cdn.com/v4/letter/c/3e96dc/32.png) [@Christopher\_Meyers](https://forum.ansible.com/u/Christopher_Meyers)\
**Post date:** [June 22, 2021, 1:03pm UTC](https://forum.ansible.com/t/is-there-a-way-to-prevent-debug-module-not-to-print-passwords/35390/2 "2021-06-22T13:03:06Z")

</div>

No.
