Skip to content

Instantly share code, notes, and snippets.

@shey
Created January 7, 2016 15:56
Show Gist options
  • Save shey/5a412707f1d9fa74846d to your computer and use it in GitHub Desktop.
Save shey/5a412707f1d9fa74846d to your computer and use it in GitHub Desktop.
site.yml
- name: Add app nginx-site config
template: src=app.j2
dest=/etc/nginx/sites-available/app
owner=www-data group=www-data
mode=0644
backup=yes
notify: restart nginx
tags: config
- name: enable app
file: src=/etc/nginx/sites-available/app
dest=/etc/nginx/sites-enabled/app
owner=www-data group=www-data
state=link
notify: restart nginx
tags: config
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment