Add SSL certificate to homepage
and rewrite some tasks
This commit is contained in:
@@ -1,13 +1,13 @@
|
||||
---
|
||||
- name: "Create nginx config for {{ static_site_name }}."
|
||||
- name: "Create nginx config for {{ static_site_name }} from {{ static_site_template }}."
|
||||
template:
|
||||
src: site.conf.j2
|
||||
src: '{{ static_site_template }}'
|
||||
dest: "/etc/nginx/sites-enabled/{{ static_site_name }}.conf"
|
||||
notify: restart nginx
|
||||
|
||||
- name: "Create root folder for {{ static_site_name }}."
|
||||
file:
|
||||
path: "/var/www/{{ static_site_name }}"
|
||||
path: "{{ static_site_dir }}"
|
||||
state: directory
|
||||
owner: "{{ deploy_user }}"
|
||||
group: www-data
|
||||
|
Reference in New Issue
Block a user