On 16.01.17 10:32 Paul Tötterman wrote: >> 1. Set check_mode: no and always run the command task so the >> variable always contains the stdout object. >> 2. Only run the debug task when my_variable.skipped is not >> defined. >> > > 3. only run the debug task when not in check_mode
> 4. set some sort of default value when in check_mode > https://docs.ansible.com/ansible/playbooks_checkmode.html Thanks for the thoughts. Which one would you pick? Which seems the cleanest? Johannes -- 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 ansible-project+unsubscr...@googlegroups.com. To post to this group, send email to ansible-project@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/978304e2-bec3-831f-f059-492d448078a9%40ojkastl.de. For more options, visit https://groups.google.com/d/optout.
signature.asc
Description: OpenPGP digital signature