mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
added note about serial behaviour (#32461)
* added note about serial behaviour
This commit is contained in:
parent
faa74a8ccd
commit
a0c0076cfb
1 changed files with 5 additions and 0 deletions
|
@ -220,6 +220,11 @@ Here is the next part of the update play::
|
|||
delegate_to: "{{ item }}"
|
||||
loop: "{{ groups.lbservers }}"
|
||||
|
||||
|
||||
.. note::
|
||||
- The ``serial`` keyword forces the play to be executed in 'batches'. Each batch counts as a full play with a subselection of hosts.
|
||||
This has some consequences on play behavior. For example, if all hosts in a batch fails, the play fails, which in turn fails the entire run. You should consider this when combining with ``max_fail_percentage``.
|
||||
|
||||
The ``pre_tasks`` keyword just lets you list tasks to run before the roles are called. This will make more sense in a minute. If you look at the names of these tasks, you can see that we are disabling Nagios alerts and then removing the webserver that we are currently updating from the HAProxy load balancing pool.
|
||||
|
||||
The ``delegate_to`` and ``loop`` arguments, used together, cause Ansible to loop over each monitoring server and load balancer, and perform that operation (delegate that operation) on the monitoring or load balancing server, "on behalf" of the webserver. In programming terms, the outer loop is the list of web servers, and the inner loop is the list of monitoring servers.
|
||||
|
|
Loading…
Reference in a new issue