Do conditionals work with the replace module?

I have something like this:

- name: Set date for demo 1
  replace: dest={{ workdirectory2 }}/junk.java regexp='2016' replace="{{ 
hostvars['localhost']['year'] }}"
  when: (is_demo and "'{{ hostvars['localhost']['soft'] }}' == 'newapp'")

And it appears to ignore the "when" conditional entirely and always 
executes the replace.

J

-- 
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/eda1adc7-4b38-42a0-86ef-8011a138b173%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to