- debug: msg: "Hi"
when: entrycurrdb.stdout.find("{{ hostvars['localhost']['BASEPATH_FINAL'] }}/{{ vars[(item | splitext)[1].split('.')[1] | default('exe')] }}/{{ item | basename }}") == -1 and actualfile.stat.exists == TrueOutput:
TASK [debug] *******************************************************************
[WARNING]: conditional statements should not include jinja2 templating
delimiters such as {{ }} or {% %}. Found: entrycurrdb.stdout.find("{{
hostvars['localhost']['BASEPATH_FINAL'] }}/{{ vars[(item |
splitext)[1].split('.')[1] | default('exe')] }}/{{ item | basename }}") == -1
and actualfile.stat.exists == True
changed: [10.0.0.16]
- debug:
msg: Hi
when:
- entrycurrdb.stdout.find(hostvars['localhost']['BASEPATH_FINAL'] ~ '/' ~ vars[(item | splitext)[1].split('.')[1] | default('exe')] ~ '/' ~ item | basename) == -1
- actualfile.stat.exists | bool