Created
October 11, 2013 20:23
-
-
Save wolstena/6941417 to your computer and use it in GitHub Desktop.
Using lists with with_items
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
Can't get lists to work. Dictionary no problem | |
- name: Varnish | Print debuging info | |
# debug: msg="OUTPUT $item[0] and $item[1]" | |
debug: msg="OUTPUT ${item.0} and ${item.1}" | |
with_items: | |
- [ "git://github.com/nand2/libvmod-throttle.git", "/home/vagrant/varnish/libvmod-throttle" ] | |
- [ "git://github.com/jib/libvmod-timers.git", "/home/vagrant/varnish/libvmod-timers" ] | |
- [ "git://github.com/jib/libvmod-statsd.git", "/home/vagrant/varnish/libvmod-statsd" ] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
command: ./libvmod-make.sh $item
chdir=/home/vagrant/varnish/
creates=/usr/lib/varnish/vmods/$item.so
when: modules|success
with_items:
tags: varnish