equal
deleted
inserted
replaced
178 task. Then next task is executed. ``serial`` sets how many hosts at a time to run at a time to the |
178 task. Then next task is executed. ``serial`` sets how many hosts at a time to run at a time to the |
179 end of subplay. |
179 end of subplay. |
180 * With ``free`` strategy tasks are executed without waiting for completion of the same task on every |
180 * With ``free`` strategy tasks are executed without waiting for completion of the same task on every |
181 host. |
181 host. |
182 |
182 |
|
183 Blocks |
|
184 ====== |
|
185 |
|
186 To avoid repetitive checks or to handle failures use ``block``:: |
|
187 |
|
188 block: |
|
189 - shell: echo do 1 |
|
190 - shell: echo do 2 |
|
191 when: not db_started |
|
192 become: true |
|
193 become_user: dba |
|
194 rescue: |
|
195 - shell: echo rollback |
|
196 always: |
|
197 - shell: echo notify |
|
198 |