Created
May 13, 2014 21:43
-
-
Save garlandkr/7c2a22047557667c8d9c to your computer and use it in GitHub Desktop.
Nginx site linker for Ansible
This file contains hidden or 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
| # Link a list of sites from the playbook | |
| {% for sitename in nginx.sitenames %} | |
| - name: link nginx sites | |
| file: src=/etc/nginx/sites-available/{{ sitename }}.conf dest=/etc/nginx/sites-enabled/{{ sitename }}.conf state=link | |
| {% endfor %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment