Made refactoring for notes app (and other)
This commit is contained in:
15
ansible/roles/blocks/static-site/tasks/main.yml
Normal file
15
ansible/roles/blocks/static-site/tasks/main.yml
Normal file
@ -0,0 +1,15 @@
|
||||
---
|
||||
- name: "Create nginx config for {{ static_site_name }} from {{ static_site_template }}."
|
||||
template:
|
||||
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: "{{ static_site_dir }}"
|
||||
state: directory
|
||||
owner: "{{ deploy_user }}"
|
||||
group: www-data
|
||||
recurse: yes
|
||||
notify: restart nginx
|
Reference in New Issue
Block a user