Re: [ansible-project] In a loop everything executes at the same time?

2018-02-13 Thread Guillem Sola
Very interesting, so then each host individually needs 0 sec for the iterations it doesn't execute which ends up with all the hosts executing the tasks at the same time. I was inspired by this comment https://github.com/ansible/ansible/issues/12170#issuecomment-283950548 but now I understand i

Re: [ansible-project] In a loop everything executes at the same time?

2018-02-09 Thread Guillem Sola
Thanks Brian for helping me understand how with item task work under the hoods. I was expecting "with_items" to work as different tasks, as per documentation "To save some typing, repeated tasks can be written in short-hand like so

[ansible-project] In a loop everything executes at the same time?

2018-02-08 Thread Guillem Sola
I want to limit the number of parllel executions for a certain task inside a playbook (I have some constrains with downloading artifacts) In that way the rest of tasks wil execute in all hosts at the same time but when the download task executes it will be limited to batches of N. For this I'm