Skip to content

Commit

Permalink
Merge pull request #90 from clint-tseng/master
Browse files Browse the repository at this point in the history
nginx_sites was being read as a literal rather than a var.
  • Loading branch information
otakup0pe authored Apr 21, 2017
2 parents 96d0e69 + 11223c2 commit b469b10
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tasks/sites.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
template:
src: site.j2
dest: "{{nginx_dir}}/sites-available/{{item.server.name}}"
with_items: nginx_sites
with_items: "{{nginx_sites}}"
when: nginx_sites|lower != 'none'
notify:
- reload nginx
Expand All @@ -16,14 +16,14 @@
owner: "{{nginx_user}}"
group: "{{nginx_user}}"
mode: 0755
with_items: nginx_sites
with_items: "{{nginx_sites}}"

- name: Nginx | Enable sites
file:
path: "{{nginx_dir}}/sites-enabled/{{item}}"
src: "{{nginx_dir}}/sites-available/{{item}}"
state: link
with_items: nginx_enabled_sites
with_items: "{{nginx_enabled_sites}}"
notify:
- reload nginx
when: nginx_enabled_sites|lower != 'none'
Expand All @@ -32,7 +32,7 @@
file:
path: "{{nginx_dir}}/sites-enabled/{{item}}"
state: absent
with_items: nginx_disabled_sites
with_items: "{{nginx_disabled_sites}}"
notify:
- reload nginx
when: nginx_disabled_sites|lower != 'none'

0 comments on commit b469b10

Please sign in to comment.