I can't find anything in ansible nor jinja documentation regarding 
substring. I'm looking for something such as this:

# variable passed at command line
host=prd01denutl01


{{ host | substring(0,5) }}
-> prd01



{{ host | substring(6,3) }}
-> den


{{ host | substring(9,3) }}
-> utl



Is there any functionality for this?

-- 
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/af4a1245-d5df-4916-8ba7-99a8e511a02b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to