On Monday, March 12, 2018 at 8:36:46 PM UTC-7, Camilo Vieira wrote:
>
> 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
>
>
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.
--
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/b5f16d3a-5b9a-44f9-b588-cc77959e60cb%40googlegroups.com.