You can pass it as variable through the command line and then use a
fail task to abort unless it's been set. That's how I've done similar
things in the past.

On Wed, May 13, 2015 at 3:37 AM, Marcel Bezemer <[email protected]> wrote:
> Hey,
>
> I am currently playing around with ansible to see if this could be used for
> us in production with our deployments. Something I am currently have trouble
> wrapping my head around is the following.
>
> I want to use ansible to deploy entire test invironment on the fly (tower
> button eventually). This would mean deploying 50ish machines to vSphere. I
> see you have to specify the datastore when cloning a vsphere_quest. When you
> dont have the most expensive version of vCenter you dont have storage pools
> and have to specifiy the datastore with the most free space. How would I be
> able to do this in ansible? I saw the vsphere_guest doesnt support wildcards
> in datastore names or just picks the one with the most free space if I dont
> specify any datastore at all. (which would be an awesome feature imho.)
>
> I dont feel like "hardcoding"  the datastore in the playbook when cloning
> the machines cause the environment around you won't stand still ;)
>
> thnx
>
> --
> 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/19ad2311-f887-4c9a-a737-6a9451f26310%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

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

Reply via email to