I have a task to copy two different versions of the same file: - name: Copy Version A copy: ... when: useCopyA
- name: Copy Version B copy: ... when: not useCopyA For a playbook that has useCopyA defined as false, Ansible is skipping both tasks. If I replace "not useCopyA" with "not false", "Copy Version B" successfully executes with either OK or Changed, so 'not' works as I would expect. I have 'useCopyA' defined as false in my defaults/main.yml. It is only defined as true in one inventory which I am not using. Any idea on what could be going wrong here? -- 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/3423dba6-2c6e-46f4-8685-fbe9e9ed95bb%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
