Can't display Ansible Error ( no_log=true)

1,791 views
Skip to first unread message

A.T

unread,
Jul 19, 2022, 6:51:35 PM7/19/22
to ansible...@googlegroups.com

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
--
Ahmed M. Ibrahim El-Tahir

Matt Martz

unread,
Jul 19, 2022, 6:54:24 PM7/19/22
to ansible...@googlegroups.com
You have to remove `no_log: true` from the task, if you don't want `no_log` to hide the message.

--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CANK-7ifz9PWYYoDC0EL6qQC_KiPLKCfD85TMW9VKNaRqVCxOKw%40mail.gmail.com.


--
Matt Martz
@sivel
sivel.net

A.T

unread,
Jul 19, 2022, 6:57:46 PM7/19/22
to ansible...@googlegroups.com
Hi Mat

no_log is not existent on any task on my playbook, i think it's hard coded in 


If anyone has a work around please share...

Thanks again




--
Ahmed M. Ibrahim El-Tahir
Oracle Certified Professional

A.T

unread,
Jul 19, 2022, 7:05:29 PM7/19/22
to ansible...@googlegroups.com
It works by adding no_log: yes

Thanks a lot

Ahmed 
Reply all
Reply to author
Forward
0 new messages