Skip to content

Instantly share code, notes, and snippets.

@halberom
Last active January 4, 2016 19:39
Show Gist options
  • Save halberom/8668664 to your computer and use it in GitHub Desktop.
Save halberom/8668664 to your computer and use it in GitHub Desktop.
role/foo/tasks passing variable to sub task yml file
- name: commands
shell: "{{ item }}"
with_items: my_commands
- include: foobar.yml
vars:
my_commands:
- 'ls /bin/bash/'
- 'uptime'
- 'ps -ef'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment