4
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Ansibleのtaskやplaybookの同時実行数はthrottleで簡単に制御できる

Posted at

Ansibleの同時実行数は以前からserialで制御できましたが、playbookにしか適用できませんでした。Ansible 2.9からはthrottleが追加され、playbookだけじゃなくtaskなども同時実行数を制御できるようになりました。
https://docs.ansible.com/ansible/2.9_ja/user_guide/playbooks_strategies.html#id3

- hosts: all
  tasks:
    - name: run
      command: hogehoge
      throttle: 1  # 同時に1つまで

便利。

4
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?