Skip to content

Instantly share code, notes, and snippets.

@knakayama
Created May 26, 2016 09:16
Show Gist options
  • Save knakayama/6d3770d43b145812e613eef77f242a4f to your computer and use it in GitHub Desktop.
Save knakayama/6d3770d43b145812e613eef77f242a4f to your computer and use it in GitHub Desktop.
---
- name: Debug
debug: msg="outer item={{ outer_item }} inner item={{ item }}"
with_items:
- a
- b
- c
---
- name: Test loop_control
hosts: localhost
connection: local
tasks:
- name: Include inner.yml
include: inner.yml
with_items:
- 1
- 2
- 3
loop_control:
loop_var: outer_item
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment