Created
December 31, 2013 10:41
-
-
Save halberom/8195118 to your computer and use it in GitHub Desktop.
iterating with links
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
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