> Is there any functionality for this?

The variable is a Jinja2 string, so you can split it like a Python
string:

        {{ host }}        -> prd01denutl01
        {{ host[0:4] }}   -> prd0
        {{ host[5:7] }}   -> de


        -JP

-- 
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/20150403144235.GA35870%40tiggr.ww.mens.de.
For more options, visit https://groups.google.com/d/optout.

Reply via email to