I perform a couple steps during server provisioning in-house prior to 
sending out to a data center. We have most installers/packages available on 
some internal http servers to speed up retrieving them, I would like to 
keep the same playbook but change the url to retrieve installers from 
during the run based on current network.

Any one have any clever ways to alter the url in a "get_url" command to 
choose the local network if on local network else use an external internet 
address?

i.e.
if ansible_ssh_host is in 192.168.0.0/16 do foo else do bar.

-- 
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/4851987d-6bba-4f9c-9d45-9db6d6792db2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to