Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save vignesh-v3/2f44c1c54a01ae1752c639f7cd840b7e to your computer and use it in GitHub Desktop.
Save vignesh-v3/2f44c1c54a01ae1752c639f7cd840b7e to your computer and use it in GitHub Desktop.
loop_var
---
- hosts: docker
tasks:
- command: "echo {{ item }}"
register: result
with_items:
- 1dag
- 2
- 3
- debug:
var: result
loop_control:
loop_var: outer_item
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment