How is it possible to get something like the following running:
{% if not exist(\'/tmp/dummy/\') then %} dummy: file.touch: - name: /tmp/dummy/tmp.txt
You can use unless for this.
dummy: file.touch: - name: /tmp/dummy/tmp.txt - unless: test -d /tmp/dummy/