By default, Ansible runs tasks in parallel. In this recipe, we will outline how to control the parallel execution of Ansible and how we can modify this default behavior. We will also explore the concept of rolling updates and how to utilize them in Ansible.
- Update the ansible.cfg file to control parallel execution, as shown in the following code snippet:
- Update the pb_push_acl.yml file to set up rolling updates for the configuration push on the network devices, as shown in the following code block:
- name: Configure ACL on IOS-XR
- name: Backup Config