Ansible loops

 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





Comments

Popular posts from this blog

Container Runtime Interface

iTerm

Ansible Plugin