You do not (and cannot) nest jinja print brackets

What you are looking for is:

file: "{{ lookup('file', name ) }}"

On Thursday, January 29, 2015, Eddie Welker <[email protected]> wrote:

> Hi,
>
> I'm trying to do something like the following in 'group_vars/all":
>
> name: "{{ lookup('env', 'PROJECT_NAME') }}"
> file: "{{ lookup('file', '{{name}}' ) }}"
>
> but of course, the syntax above won't work.
>
> Is there an alternate way to do this?  I can't think of a way to
> accomplish this.
>
> -e
>
> --
> 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]
> <javascript:_e(%7B%7D,'cvml','ansible-project%[email protected]');>
> .
> To post to this group, send email to [email protected]
> <javascript:_e(%7B%7D,'cvml','[email protected]');>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/74698eda-cb3b-44c3-8c59-7314ed126209%40googlegroups.com
> <https://groups.google.com/d/msgid/ansible-project/74698eda-cb3b-44c3-8c59-7314ed126209%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>


-- 
Matt Martz
@sivel
sivel.net

-- 
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/CAD8N0v_6%3DLn_wmye6kUL6QnRKZ2X%2BT8ELqKH9CTtFfXO8r94uw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to