# Can't display Ansible Error ( no\_log=true)

**URL:** <https://forum.ansible.com/t/cant-display-ansible-error-no-log-true/36874>\
**Category:** Ansible Project\
**Tags:** vmware, aws\
**Created:** [July 19, 2022, 10:51pm UTC](https://forum.ansible.com/t/cant-display-ansible-error-no-log-true/36874 "2022-07-19T22:51:10Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![A.T](https://avatars.discourse-cdn.com/v4/letter/a/b5a626/32.png) [@A.T](https://forum.ansible.com/u/A.T)\
**Post date:** [July 19, 2022, 10:51pm UTC](https://forum.ansible.com/t/cant-display-ansible-error-no-log-true/36874/1 "2022-07-19T22:51:10Z")

</div>

Hi Ansible peeps,

I have this environment to automate VMware with Ansible

Is there any way to alter this behaviour to allow the task to display error, I can’t seem to debug this way.

TASK [Adding ESXi host “esxi01-mgmt-aet.ictms.lab” to vCenter . . .] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
**fatal: [localhost → localhost]: FAILED! =\> {“censored”: “the output has been hidden due to the fact that ‘no\_log: true’ was specified for this result”, “changed”: false}**

PLAY RECAP \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
localhost : ok=0 changed=0 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0

(ansible3.0) [root@lsgmsauto baremetalesxi]# pip3 list  
Package Version

* * *

ansible 3.0.0  
ansible-base 2.10.17  
certifi 2022.5.18.1  
cffi 1.15.0  
chardet 4.0.0  
charset-normalizer 2.0.12  
cryptography 37.0.2  
idna 3.3  
Jinja2 3.0.3  
lxml 4.9.0  
MarkupSafe 2.0.1  
nsx-policy-python-sdk 3.1.5.0.0  
nsx-python-sdk 3.1.5.0.0  
nsx-vmc-aws-integration-python-sdk 3.1.5.0.0  
nsx-vmc-policy-python-sdk 3.1.5.0.0  
packaging 21.3  
pip 21.3.1  
pycparser 2.21  
pyOpenSSL 22.0.0  
pyparsing 3.0.9  
python-hpilo 4.4.3  
pyvmomi 7.0.3  
PyYAML 6.0  
requests 2.27.1  
setuptools 39.2.0  
six 1.16.0  
urllib3 1.26.9  
vapi-client-bindings 3.8.0  
vapi-common-client 2.34.0  
vapi-runtime 2.34.0  
vmc-client-bindings 1.59.0  
vmc-draas-client-bindings 1.19.0  
vSphere-Automation-SDK 1.77.0

---

<div class="post-metadata">

**Author:** ![sivel](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/sivel/32/1198_2.png) [@sivel](https://forum.ansible.com/u/sivel)\
**Post date:** [July 19, 2022, 10:53pm UTC](https://forum.ansible.com/t/cant-display-ansible-error-no-log-true/36874/2 "2022-07-19T22:53:33Z")

</div>

You have to remove `no_log: true` from the task, if you don’t want `no_log` to hide the message.

---

<div class="post-metadata">

**Author:** ![A.T](https://avatars.discourse-cdn.com/v4/letter/a/b5a626/32.png) [@A.T](https://forum.ansible.com/u/A.T)\
**Post date:** [July 19, 2022, 10:57pm UTC](https://forum.ansible.com/t/cant-display-ansible-error-no-log-true/36874/3 "2022-07-19T22:57:24Z")

</div>

Hi Mat

no\_log is not existent on any task on my playbook, i think it’s hard coded in

[https://github.com/ansible-collections/community.vmware/](https://github.com/ansible-collections/community.vmware/)

If anyone has a work around please share…

Thanks again

---

<div class="post-metadata">

**Author:** ![A.T](https://avatars.discourse-cdn.com/v4/letter/a/b5a626/32.png) [@A.T](https://forum.ansible.com/u/A.T)\
**Post date:** [July 19, 2022, 11:05pm UTC](https://forum.ansible.com/t/cant-display-ansible-error-no-log-true/36874/4 "2022-07-19T23:05:06Z")

</div>

It works by adding no\_log: yes

Thanks a lot

Ahmed
