Skip to content

Instantly share code, notes, and snippets.

@wolstena
Created October 11, 2013 20:23
Show Gist options
  • Save wolstena/6941417 to your computer and use it in GitHub Desktop.
Save wolstena/6941417 to your computer and use it in GitHub Desktop.
Using lists with with_items
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" ]
@wolstena
Copy link
Author

  • name: Varnish | Build VMODS
    command: ./libvmod-make.sh $item
    chdir=/home/vagrant/varnish/
    creates=/usr/lib/varnish/vmods/$item.so
    when: modules|success
    with_items:
    • libvmod-throttle
    • libvmod-timers
    • libvmod-statsd
      tags: varnish

@wolstena
Copy link
Author

creates is broken

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment