## WORKING WITH LOOPS

Loops can do one task on multiple things: create a lot of users, install a lot of packages, or repeat a polling step until a certain result is reached.

Ansible Terminal

    - yum:
        name: "{{ item }}"
        state: latest
      with_items:
      - httpd
      - mysql-server
      - php56-mysqlnd
      - php56-common
      - php56-gd
      - php56-soap
      - php56-xml

This example demonstrates a basic loop with `with_items`. The loop sets a variable called "item", a template variable courtesy of the embedded Jinja2 template engine, with the list value that is in context.

There are many different and specialized types of task loops to work with. See the Loops documentation to go deeper.