Hi,

if you trick ansible to think every instance is on it`s own server, it will
go thru all of them in parallel (to the forks count of course). For static
inventory it would be like:

[servers]
app1 ansible_ssh_host=192.168.1.2
app2 ansible_ssh_host=192.168.1.2

Ansible than access to the app1 and app2 like on the separate servers.


David Karban
Linux server specialist/Specialista na správu linuxových serverů
www.karban.eu

2016-01-08 17:26 GMT+01:00 Daan de Wit <[email protected]>:

> Hi,
>
> I'm seeking advice for how to best structure the inventory for our
> situation. We have multiple hosts, and each host is running multiple
> instances of the same software that we'd like to update using Ansible. Each
> instance has properties like port number etc. We would like to run updates
> on the same host in parallel.
> I am currently thinking of creating a list of instances per host. But that
> would not give us parallel updates, unless we use 'fire and forget' for the
> update task. But then we would need to add some way to detect whether all
> instances are updated correctly.
>
> Do you have any suggestions for how we can / should tackle this?
>
> Thanks!
> Daan
>
> --
> 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/13b588ab-1ed9-4636-85e5-44a24fa1dd01%40googlegroups.com
> <https://groups.google.com/d/msgid/ansible-project/13b588ab-1ed9-4636-85e5-44a24fa1dd01%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> 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/CAOBFM947zoLuCqmazY9rF21_NbED4_zsAg_tmHanF2Nz%2B%3DUNSg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to