On Wednesday, 24 October 2018 19:20:25 CEST Brent Weaver wrote:
> This does not seem to work:
> 
> ---
> - hosts:
>     - "*westus_azure_ops*"
>   vars:
>     X: "{{ groups['splunk_cluster_label_westus_azure_ops'] | random_choice 
> }}"
>   tasks:
>     - debug: var=X
> 
> no filter named 'random_choice' is likely the error tripping us up

The filter is called random, random_choice is a lookup plugin.

-- 
Kai Stian Olstad


-- 
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/11032901.hsV2AAqsVp%40x1.
For more options, visit https://groups.google.com/d/optout.

Reply via email to