Hi,

Great, thanks. Clearly I didn't look hard enough in the documentation: 
http://docs.ansible.com/playbooks_variables.html#other-useful-filters

Steve


On 7 Aug 2014, at 11:31 am, Matt Martz <[email protected]> wrote:

> Ansible includes a |dirname filter that will do this for you.
> 
> On Wednesday, August 6, 2014, Steven Ringo <[email protected]> wrote:
> Hi,
> 
> I wish to pass in a parameter for a file, e.g: /var/log/atlas/service.log
> 
> The directory at /var/log/atlas/ must also be created before the application 
> writes to this file.
> 
> Is there a way to get the directory from the path, perhaps with a jinja2 
> filter? Or if anyone knows of a filter than can do this, that would be 
> awesome.
> 
> Thanks,
> 
> Steve
> 
> 
> 
> -- 
> 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/281a861d-0aa1-493c-b6ee-94bab0dd35f6%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
> 
> 
> -- 
> Matt Martz
> [email protected]
> http://sivel.net/
> 
> -- 
> You received this message because you are subscribed to a topic in the Google 
> Groups "Ansible Project" group.
> To unsubscribe from this topic, visit 
> https://groups.google.com/d/topic/ansible-project/E1xUNT4un2I/unsubscribe.
> To unsubscribe from this group and all its topics, 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/CAD8N0v_B%2Bu%2BQ2HxrB8c61pZU5L4VzFKAdD-j0yeoWLH-19RfPA%40mail.gmail.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
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/F9835CFA-2B11-4023-9CA6-856FA773BC8E%40stevenringo.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to