Set forks for one task in ansible playbook

后端 未结 4 394
一个人的身影
一个人的身影 2021-01-12 17:20

I have one task in my playbook that I want to run on only one host at a time. The rest of the tasks I want to honor the --forks option. Is this possible?

4条回答
  •  一生所求
    2021-01-12 17:48

    Yes checkout rolling updates

    specifically you can add a "serial: x" parameter for a play where x is the number of forks

提交回复
热议问题