How Do You Get an Ansible Playbook to Not Skip a Section?

Problem scenario
You are running a playbook. A section is being skipped. When you use "-vvvv" to enhance the verbosity of the output messages, you see "Condition result was false". How do you get the playbook section that is being skipped to execute?

The most likely cause is that you have a "when" statement that governs the clause of the playbook that is being skipped. This condition is false -- at least that is what the Ansible engine thinks. Check the logic of the "when" statement that pertains to the section of the playbook not running.

Leave a comment

Your email address will not be published. Required fields are marked *