for the first, the random_choice filter seems to be what you want:
```
anynode: "{{ groups['shc_hosts']|random_choice }}"
```
for the 2nd something like:
```
urllist: "{{ groups['shc_hosts']|map('regex_replace', '^(.*)$',
'https://'')|list|join(':8089,')}}:8089"
```-- ---------- 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/CACVha7cUjiwz%2Bnxrot6oiieJw-7ROPh7TQcYnL3tT6jy2FhGKw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
