5

I am using Ansible with Molecule. I just ran into the situation that converging my role failed with:

fatal: [instance]: FAILED! => {"censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result"}

How to mitigate? Hold on a sec, I will answer ...

1 Answer 1

4

What worked for me is to set logging to "true" for molecule:

  1. Go to the "molecule.yml" file, this is where you do your configuration for molecule.
    You should find it in the molecule/default/ directory
  2. Look for the provisioner: section
  3. Add log: true to it.
  4. Voilà!

That's how it looks:

provisioner:
  name: ansible
  log: true

Note that there may by other settings in this very section for the provisioner.

2
  • To be honest: Probably just editing the file did the trick. After removing the logging parameter, the error also went away. I am still a bit fuzzy here, so please excuse.
    – kghbln
    Commented Jun 10, 2020 at 16:21
  • 1
    Upvoted the answer since it answers the question. I didn't have log output. I made the change. Now I do! Commented Nov 3, 2020 at 16:30

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.