"censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result

Hi,

This is my environment:

lsb_release -a

No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 16.04.2 LTS
Release: 16.04
Codename: xenial

python --version

Python 2.7.12

python3 --version

Python 3.5.2

ansible --version

ansible 2.4.3.0
config file = /etc/ansible/ansible.cfg
configured module search path = [u’/root/.ansible/plugins/modules’, u’/usr/share/ansible/plugins/modules’]
ansible python module location = /usr/lib/python2.7/dist-packages/ansible
executable location = /usr/bin/ansible
python version = 2.7.12 (default, Dec 4 2017, 14:50:18) [GCC 5.4.0 20160609]

molecule --version

molecule, version 2.10.1

I have receiving the following error:

molecule test

→ Test matrix

└── default
├── lint
├── destroy
├── dependency
├── syntax
├── create
├── prepare
├── converge
├── idempotence
├── side_effect
├── verify
└── destroy

→ Scenario: ‘default’
→ Action: ‘lint’
→ Executing Yamllint on files found in /vagrant/roles/test/…
Lint completed successfully.
→ Executing Flake8 on files found in /vagrant/roles/test/molecule/default/tests/…
Lint completed successfully.
→ Executing Ansible Lint on /vagrant/roles/test/molecule/default/playbook.yml…
Lint completed successfully.
→ Scenario: ‘default’
→ Action: ‘destroy’

PLAY [Destroy] *****************************************************************

TASK [Destroy molecule instance(s)] ********************************************
changed: [localhost] => (item=None)

TASK [Wait for instance(s) deletion to complete] *******************************
failed: [localhost] (item=None) => {“attempts”: 1, “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=1 changed=1 unreachable=0 failed=1

ERROR:
An error occured during the test sequence. Cleaning up.
→ Scenario: ‘default’
→ Action: ‘destroy’

PLAY [Destroy] *****************************************************************

TASK [Destroy molecule instance(s)] ********************************************
changed: [localhost] => (item=None)

TASK [Wait for instance(s) deletion to complete] *******************************
failed: [localhost] (item=None) => {“attempts”: 1, “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=1 changed=1 unreachable=0 failed=1

ERROR:

Somebody could help me to fix it?

Thanks

Sounds like you have no_log: yes set on your task which is blocking the output from being shown to you. If you remove that to debug the task you may be able to find out what is going on.

Hi
Did you solve the problem?
I have the same problem.
Thank you.

It looks like you’re using molecule with the Ansible provisioner. By default, the Ansible provisioner in Molecule does hides certain logs, but if you go to your molecule.yml file (in <your_role>/molecule/<scenario_name>/molecule.yml, in your example the name is ‘default’) you can configure it as such:

provisioner:
name: ansible
log: true

After that all log output related to creation/destruction should be visible in the console.