Skip to content

Instantly share code, notes, and snippets.

@halberom
Created December 31, 2013 10:41
Show Gist options
  • Save halberom/8195118 to your computer and use it in GitHub Desktop.
Save halberom/8195118 to your computer and use it in GitHub Desktop.
iterating with links
vars:
nginx_local_servers:
- src: 'hasta.la.vista.conf'
dst: 'terminator.conf'
- src: 'boom.baby.conf'
dst: 'cafe.ole.conf'
local_src: '/tmp/sites-local'
local_dst: '/tmp/sites-enabled'
tasks:
- file: state=link src={{ local_src }}/{{ item.src }} dest={{ local_dst }}/{{ item.dst }}
with_items: nginx_local_servers
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment