In order for this to work the variable cannot be a host var or by extension
not a group_var. It must be a variable that is defined globally such as
from:
1. vars
2. vars_files
3. --extra-vars/-e
4. role invocation ( - { role: foo, some_var: bar } )
There are others, but the important thing is that vars from inventory,
host_vars and group_vars will not work. The reason for this is that the
var could be different for each host and it would make sense, as well as
name being printed before the hosts are inspected.
On Mon, Sep 15, 2014 at 9:32 PM, Stephen Aylward <
[email protected]> wrote:
> When running my playbook, on tasks that I have tried to name with
> variables, the variable name is there rather than the value.
> Eg:
> TASK: [weblogic | Create {{ tmp_dir }}] **************************
>
> What do I need to change to get the tmp dir value output?
> 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/952d8dbc-c468-4bcf-9696-e6e5bfeb51db%40googlegroups.com
> <https://groups.google.com/d/msgid/ansible-project/952d8dbc-c468-4bcf-9696-e6e5bfeb51db%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> 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 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_B91Ziem-6yKKGjKzfgqdBtaskcab1w7Bm3YKEEJkvbw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.