ansible loops

Introduction to Ansible Loops

In this post we will be seeing how to use Ansible Loops, Sometimes you want to repeat a task multiple times. In computer programming, this is called a loop. Common Ansible loops include changing ownership on several files and/or directories with the file module, creating multiple users with the user module, and repeating a polling step until a certain result is reached.