Skip to content

Instantly share code, notes, and snippets.

@garlandkr
Created May 13, 2014 21:43
Show Gist options
  • Select an option

  • Save garlandkr/7c2a22047557667c8d9c to your computer and use it in GitHub Desktop.

Select an option

Save garlandkr/7c2a22047557667c8d9c to your computer and use it in GitHub Desktop.
Nginx site linker for Ansible
# 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