Remove website/includes
This commit is contained in:
parent
7956d09b3e
commit
c59549b709
3 changed files with 0 additions and 59 deletions
|
@ -1,2 +0,0 @@
|
|||
---
|
||||
- include: "{{ playbook_dir }}/roles/nginx/handlers/main.yml"
|
|
@ -1,36 +0,0 @@
|
|||
---
|
||||
- name: configure {{ site }} site
|
||||
template: >
|
||||
src=site.j2
|
||||
dest=/etc/nginx/sites-available/{{ site }}
|
||||
owner=root
|
||||
group=root
|
||||
mode=0644
|
||||
notify: reload nginx
|
||||
tags:
|
||||
- nginx
|
||||
- website
|
||||
- "{{ site }}"
|
||||
|
||||
- name: create {{ site }} root
|
||||
file: path={{ document_root.path }} state=directory owner=www-data group=www-data mode=0755
|
||||
when: document_root.create
|
||||
tags:
|
||||
- nginx
|
||||
- website
|
||||
- "{{ site }}"
|
||||
|
||||
- name: enable {{ site }} site
|
||||
file: >
|
||||
src=/etc/nginx/sites-available/{{ site }}
|
||||
dest=/etc/nginx/sites-enabled/{{ site }}
|
||||
owner=root
|
||||
group=root
|
||||
mode=0644
|
||||
state=link
|
||||
notify: reload nginx
|
||||
tags:
|
||||
- nginx
|
||||
- website
|
||||
- "{{ site }}"
|
||||
|
|
@ -1,21 +0,0 @@
|
|||
{% for port in ports %}
|
||||
server {
|
||||
include /etc/nginx/include/no_logging.conf;
|
||||
include /etc/nginx/include/no_dotfiles.conf;
|
||||
include /etc/nginx/include/no_symlinks.conf;
|
||||
|
||||
{% if listing %}
|
||||
location / {
|
||||
include /etc/nginx/include/listing.conf;
|
||||
}
|
||||
|
||||
{% endif %}
|
||||
listen {{port.number}}{% if port.ssl %} ssl{% endif %};
|
||||
listen [::]:{{port.number}}{% if port.ssl %} ssl{% endif %};
|
||||
|
||||
server_name {{ domains | join(" ") }};
|
||||
|
||||
root {{ document_root.path }};
|
||||
}
|
||||
|
||||
{% endfor %}
|
Loading…
Reference in a new issue