item

The variable that holds the current value in each iteration of an Ansible loop.

In more detail

For a list of text values, item is the text; for a list of mappings, item.name reads the name field. loop_control can rename it when loops are nested, so an inner loop does not hide the outer one's item.

Related terms

Taught in

References

Certification courses