- 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'")- 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')