I have narrowed this issue down to a sample role: 

---
- set_fact:
    testdir: "/some/dir/myfile.txt"

- debug:
    var: "{{ testdir | dirname }}"


I get back the error: 
fatal: [vagrant_test01]: FAILED! => 
  msg: 'template error while templating string: unexpected ''/''. String: 
{{/some/dir}}'


I have tried this on Ansible 2.7.9 and 2.6.15.  Am I doing something wrong, 
or is there a bug here?

-- 
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/400f3271-6285-4b6e-8912-80f19231ac3c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to