Thanks Brian,
THis is how work for me.
{{ansible_local.oracle.credentials[websphere_mb.odbc.schema_name]}}
And ansible_local really come from other node that I ask using
- name: Get sql master facts
setup:
delegate_to: "{{websphere_mb.odbc.host}}"
register: db_facts
tags: mbconfig
Some better way to do this?
THanks
Ale
On Tuesday, August 4, 2015 at 11:31:41 AM UTC-3, Brian Coca wrote:
>
> no moustache stacking
>
> {{ansible_local.oracle.credentials[{{websphere_mb.odbc.schema_name]}}
>
> On Tue, Aug 4, 2015 at 10:22 AM, Alejandro Ferrari
> <[email protected] <javascript:>> wrote:
> > Hi, I like to know if possible made reference of a variable inside other
> > variable.
> >
> > Example:
> >
> > {{ansible_local.oracle.credentials."{{websphere_mb.odbc.schema_name}}"}}
> >
> > with this I try to build the final variable name that if I put manually
> > works, but like to don't hardcode Schame_name and read from vars file.
> >
> > this can be possible?
> >
> > Thanks
> > Ale
> >
> > --
> > 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:>.
> > To post to this group, send email to [email protected]
> <javascript:>.
> > To view this discussion on the web visit
> >
> https://groups.google.com/d/msgid/ansible-project/340275a2-6ba7-44ee-940b-d7d06c3495bb%40googlegroups.com.
>
>
> > For more options, visit https://groups.google.com/d/optout.
>
>
>
> --
> Brian Coca
>
--
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/f955c893-ba6d-49ca-9046-fe46c9c9e949%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.