[ansible-project] How to fix warning message conditional statements should not include jinja2 templating delimiters

2020-02-11 Thread Shifa Shaikh
How do I make changes to the below complex when condition without breaking the code in order to address the warning. - debug: msg: "Hi" when: entrycurrdb.stdout.find("{{ hostvars['localhost']['BASEPATH_FINAL'] }}/{{ vars[(item | splitext)[1].split('.')[1] | default('exe')] }}/{{

[ansible-project] How to fix warning message conditional statements should not include jinja2 templating delimiters

2020-02-11 Thread Shifa Shaikh
How do I make changes to the below complex when condition without breaking the code in order to address the warning. - debug: msg: "Hi" when: entrycurrdb.stdout.find("{{ hostvars['localhost']['BASEPATH_FINAL'] }}/{{ vars[(item | splitext)[1].split('.')[1] | default('exe')] }}/{{