Re: [ansible-project] Using variables as dictionary keys

2015-09-15 Thread Dan Stillman

On 9/15/15 12:57 PM, Patrick McMahon wrote:
Is something like this possible when defining a dictionary in 
defaults/main.yml:


|
agent_instances:
"{{ [ansible_fqdn] }}":
port:5912
"{{ [ansible_fqdn]-2 }}":
port:5913

|

I want to then call |agent_instances.keys() | join (",") |in a jinja2 
template. |

|


Similar request here: https://github.com/ansible/ansible/pull/9496

--
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 ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/55F8706B.2050200%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [ansible-project] Using variables as dictionary keys

2015-09-15 Thread Patrick McMahon
Ahh, I'll have to think of another way to do it then. Thanks Dan!

Paddy

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/997024a1-f984-49ae-b66f-e363a811628f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.