You can use throttle on block, hovewer it will not work as you need https://github.com/ansible/ansible/issues/64659#issuecomment-564604298
Dne neděle 15. března 2020 16:57:44 UTC+1 Kai Stian Olstad napsal(a): > > On 14.03.2020 14:06, Jelle de Jong wrote: > > I would like to request the feature to apply serial:1 to blocks inside > > a > > role. > > > > I ended up in a futile attempt trying to use include and include_tasks > > without luck, and ended moving my whole block of tasks to a bash script > > with a locking system that waited it turn to run. I then called he > > script > > from ansible, lots of extra work. > > > > - name: create a include_tasks to do a ipaddr calculation with > > throttle one > > include_tasks: > > file: throttle01.yml > > apply: > > throttle: 1 > > You can use throttle on a block > > https://docs.ansible.com/ansible/latest/reference_appendices/playbooks_keywords.html#id4 > > > -- > Kai Stian Olstad > -- 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 ansible-project+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/b9dddf3d-0096-4e06-ab90-ece5388f5676%40googlegroups.com.