Skip to content
This repository has been archived by the owner on Aug 13, 2024. It is now read-only.

Commit

Permalink
Merge pull request #77 from Jonnymcc/fix-remove-defaults
Browse files Browse the repository at this point in the history
Allow the default site to be removed with hash merge behavior
  • Loading branch information
jdauphant committed Nov 18, 2015
2 parents 192e113 + f44ae35 commit 1797a09
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tasks/configuration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,14 @@

- name: Create the configurations for sites
template: src=site.conf.j2 dest={{nginx_conf_dir}}/sites-available/{{ item }}.conf
with_items: nginx_sites.keys()
with_items: nginx_sites.keys() | difference(nginx_remove_sites)
notify:
- restart nginx
tags: [configuration,nginx]

- name: Create links for sites-enabled
file: state=link src={{nginx_conf_dir}}/sites-available/{{ item }}.conf dest={{nginx_conf_dir}}/sites-enabled/{{ item }}.conf
with_items: nginx_sites.keys()
with_items: nginx_sites.keys() | difference(nginx_remove_sites)
notify:
- reload nginx
tags: [configuration,nginx]
Expand Down

0 comments on commit 1797a09

Please sign in to comment.