molecule icon indicating copy to clipboard operation
molecule copied to clipboard

More verbosity for idempotence step

Open kenorb opened this issue 5 years ago • 1 comments

Issue Type

  • Feature request

Molecule and Ansible details

% ansible --version && molecule --version

ansible 2.9.13
  config file = /Users/kenorb/.ansible.cfg
  configured module search path = ['/Users/kenorb/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/local/lib/python3.8/site-packages/ansible
  executable location = /usr/local/bin/ansible
  python version = 3.8.6 (default, Nov 20 2020, 18:29:40) [Clang 12.0.0 (clang-1200.0.32.27)]
molecule 3.1.5
    ansible:2.9.13 python:3.8
    delegated:3.1.5 from molecule
    docker:0.2.4 from molecule_docker

Molecule installation method (one of):

  • pip

Ansible installation method (one of):

  • pip

Desired Behavior

I'm running: molecule --debug idempotence however it doesn't gives enough verbose output. How I can print Ansible output during idempotence step?

All I've got is:

DEBUG: COMMAND
/usr/local/bin/ansible-playbook --skip-tags=molecule-notest,notest,molecule-idempotence-notest --diff ...

ERROR: Idempotence test failed because of the following tasks:
* [xenial] => foo: bar

I'm expecting --debug to show me the full output from the Ansible tasks (similar to converge step), or to have another verbose option which can achieve that.

kenorb avatar Jan 18 '21 16:01 kenorb

idempotence just runs your role twice and greps for different results, so there isn't anything to see really.

I agree it is confusing though but you basically just need to run molecule converge and you get your logs.

Perhaps the status of the failure would be good to know here.

decentral1se avatar Jan 19 '21 12:01 decentral1se