Just looking for possible better approaches for specifying a semi absolute 
path to include_tasks.

I've come up with this:
vars:
   pwd: '{{ lookup("env", "PWD") }}'

And then constructing the include path with this variable (thus "rooting" 
the path to execution location).

Is there another way to construct an "absolute" (rooted) path (absolute to 
the top of the directory).
I've learned that ansible supports 'ansible_search_path' but that is set 
off of the originally loaded file.

Use case:
I have includes that include, and want to keep some path independence.
I want to have a completely self contained directory of files.

Thanks :-)

-- 
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/e9f7c219-45de-4140-b72c-95c32d182ec7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to