No, hostvars do not support ranges, but you can define a single
hostvar for the range and use templating to get what you want.


 www[01:50].example.com ansible_host={{'1.1.1.' +
inventory_hostname.split('.')[0]|regex_replace('www','') }}

^ have not tested it, but something like this should work.


-- 
----------
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/CACVha7cjFT2MqxsQj85-O-NSD0NP6eQWK%3DSMXiJdWt_LVAPHrw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to