Sorry for the delay.  

That has worked fantastic!  Thank you so much for your help.

On Sunday, September 21, 2014 8:27:51 PM UTC-7, Matt Wells wrote:
>
> Hi all, I hope somebody can offer me a little guidance.  I've read a 
> decent amount on jinja2 and as I'm still learning python; so with that I 
> hoped for a little guidance. 
> Essentially I want to apply a role based off an item in the hostname.
>
> So {{ ansible_hostname }} = las01-123-984 where 123 is the host type. 
>  That's my role that's setup.  It sets up the box as an apache system with 
> new firewall and all that.  
> I've just been unable to get the proper parser to pull the 123 from the 
> hostname.  
>
> Any guidance would be fantastic, thank you all!!
>

-- 
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/5842795a-cef6-45e3-8b7c-ba8406d4ca73%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to