2016-07-03 12:19:12 +02:00
|
|
|
---
|
|
|
|
- name: Install the nginx virtualhost files
|
|
|
|
template: src=nginx-virthost.j2 dest=/etc/nginx/sites-available/{{ item.virthost_name }} owner=root group=root mode=0444
|
2016-11-10 10:26:49 +01:00
|
|
|
with_items: '{{ nginx_virthosts | default(omit) }}'
|
2016-07-03 12:19:12 +02:00
|
|
|
notify: Reload nginx
|
|
|
|
tags: [ 'nginx', 'virtualhost' ]
|
|
|
|
|
|
|
|
- name: Enable the nginx virtualhosts
|
|
|
|
file: src=/etc/nginx/sites-available/{{ item.virthost_name }} dest=/etc/nginx/sites-enabled/{{ item.virthost_name }} state=link
|
2016-11-10 10:26:49 +01:00
|
|
|
with_items: '{{ nginx_virthosts | default(omit) }}'
|
2016-07-03 12:19:12 +02:00
|
|
|
notify: Reload nginx
|
|
|
|
tags: [ 'nginx', 'virtualhost' ]
|