forked from ISTI-ansible-roles/ansible-roles
13 lines
532 B
YAML
13 lines
532 B
YAML
|
---
|
||
|
- 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
|
||
|
with_items: '{{ nginx_virthosts }}'
|
||
|
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
|
||
|
with_items: '{{ nginx_virthosts }}'
|
||
|
notify: Reload nginx
|
||
|
tags: [ 'nginx', 'virtualhost' ]
|