I have multiple tasks depend from the value of variable1. I want to check if the value is in {{ variable1 }} but I get an error:
- name: do something when the value in variable1
  command: <command>
  when: "'value' in {{ variable1 }}"
I'm using ansible 2.0.2