Ansible

What the serial keyword is used for?

Difficulty: unrated

Source: bregman-arie/devops-exercises by Arie Bregman

Answer

It's used to specify the number (or percentage) of hosts to run the full play on, before moving to next number of hosts in the group.

For example:

- name: Some play
  hosts: databases
  serial: 4

If your group has 8 hosts. It will run the whole play on 4 hosts and then the same play on another 4 hosts.