# ansible-playbook shows encrypted data?

**URL:** <https://forum.ansible.com/t/ansible-playbook-shows-encrypted-data/28714>\
**Category:** Ansible Project\
**Tags:** ubuntu\
**Created:** [October 3, 2018, 11:44pm UTC](https://forum.ansible.com/t/ansible-playbook-shows-encrypted-data/28714 "2018-10-03T23:44:16Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![David\_Reagan](https://avatars.discourse-cdn.com/v4/letter/d/71e660/32.png) [@David\_Reagan](https://forum.ansible.com/u/David_Reagan)\
**Post date:** [October 3, 2018, 11:44pm UTC](https://forum.ansible.com/t/ansible-playbook-shows-encrypted-data/28714/1 "2018-10-03T23:44:16Z")

</div>

I have encrypted some of my host\_vars data using ansible-vault. The data is encrypted properly. What is odd is that when I run the playbook that uses the data, the data is output, in plaintext, to the console.

It does this when the task has changed, and when the task hasn’t changed.

Is that expected behavior?

Ansible 2.4.4.0 on Ubuntu 18.04.

---

<div class="post-metadata">

**Author:** ![Kai\_Stian\_Olstad](https://avatars.discourse-cdn.com/v4/letter/k/e19adc/32.png) [@Kai\_Stian\_Olstad](https://forum.ansible.com/u/Kai_Stian_Olstad)\
**Post date:** [October 4, 2018, 5:02am UTC](https://forum.ansible.com/t/ansible-playbook-shows-encrypted-data/28714/2 "2018-10-04T05:02:06Z")

</div>

Yes.  
If you would like to hide information in logs and output use the no\_log: True attribute on the task or the play.
