Loops
Do many things in one task, until a certain result is reached
- name: Install packages
apt:
name: "{{ item }}"
loops:
- pkg1
- pkg2
In Ansible Loops, the term {{ item }} is used as a placeholder for each elements in the list we are looping