Sounds like you probably need to use inventory groups.

See http://docs.ansible.com/ansible/intro_inventory.html

You might need to use groups with dynamic inventory

http://docs.ansible.com/ansible/intro_dynamic_inventory.html#static-groups-of-dynamic-groups

HTH 

Jon

On Tuesday, 5 April 2016 21:36:03 UTC+1, Marcos Alano wrote:
>
> Hi fellows!
>
> I'm a relatively new on Ansible. I can write some code, but I don't know 
> how to do some things in the best possible way. So what's why I'm asking 
> for help.
> First, a little of contextualization: I'm working in my college on a 
> project about personal health records. The idea is create a system on a 
> private cloud to store this records. This cloud is based on OpenStack but 
> for tests I would like use KVM (but I can use LXC as well).
> There will be just one virtual machine image for all types of machines 
> (databases, message queues, load balancers, etc.) and each type of machine 
> will receive specific customizations (like package installation) from 
> Ansible.
> So after boot up a minimum machine it will become different for each task.
>  My problem is: How  could I deploy this machines? I would like each 
> machine has a identifier (to specific the type of machine and instance 
> number) and inventory was feeded by OpenStack.
>
> Thanks and if you have any question I would love to answer.
>
> Cheers.
>

-- 
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/2c64853d-c008-4729-9ca4-1b04d4db34d2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to