First commit
This commit is contained in:
18
roles/nginx/tasks/vhosts.yml
Normal file
18
roles/nginx/tasks/vhosts.yml
Normal file
@@ -0,0 +1,18 @@
|
||||
- name: symlink vhosts
|
||||
file:
|
||||
src: "/etc/nginx/sites-available/{{ item }}.conf"
|
||||
dest: "/etc/nginx/sites-enabled/{{ item }}.conf"
|
||||
force: True
|
||||
follow: False
|
||||
state: link
|
||||
notify:
|
||||
- restart nginx
|
||||
loop: "{{ web_hostname }}"
|
||||
|
||||
- name: install vhosts
|
||||
template:
|
||||
src: "vhosts/{{ item }}.conf.j2"
|
||||
dest: "/etc/nginx/sites-available/{{ item }}.conf"
|
||||
notify:
|
||||
- restart nginx
|
||||
loop: "{{ web_hostname }}"
|
Reference in New Issue
Block a user