Created
May 26, 2016 09:16
-
-
Save knakayama/6d3770d43b145812e613eef77f242a4f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- name: Debug | |
debug: msg="outer item={{ outer_item }} inner item={{ item }}" | |
with_items: | |
- a | |
- b | |
- c |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- 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