On 11.01.17 22:18 Tom Christopher wrote: > Trying to set_fact based on user input: > > - set_fact: > wls_bounce_jvm: True > when: bounce_managed_instance == True and deploy == True
Are these boolean variables or are they set to the string "True" (with a capital T)? If the latter, then quote both like this: when: 'bounce_managed_instance == "True" and deploy == "True" ' > On my Mac OSX system running version 2.1.2.0.1_0 and 2.2.0.0.1_0 works > without issue. > > If I run the same code on RHEL 6 version 2.1.0.0-1 > > The fact doesn't get set, keeps skipping. Add two debug tasks directly before your task and try again. - debug: var="bounce_managed_instance" - debug: var="deploy" - set_fact: ... My guess is that you are missing the quotes. 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 [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/8f9687ba-eb82-b38c-b52e-54d2790ebc2a%40ojkastl.de. For more options, visit https://groups.google.com/d/optout.
signature.asc
Description: OpenPGP digital signature
