add caching feature
This commit is contained in:
parent
d641af6347
commit
128fbc8258
3 changed files with 22 additions and 0 deletions
|
|
@ -42,6 +42,15 @@
|
|||
notify:
|
||||
- restart nginx
|
||||
|
||||
- name: create cache directories
|
||||
with_dict: "{{ nginx.caches }}"
|
||||
file:
|
||||
path: "/var/cache/nginx/{{ item.key }}"
|
||||
state: directory
|
||||
mode: '0755'
|
||||
owner: www-data
|
||||
recurse: True
|
||||
|
||||
- name: execute ssl template
|
||||
template:
|
||||
src: ssl_files.conf.j2
|
||||
|
|
@ -58,6 +67,7 @@
|
|||
- upstreams.conf
|
||||
- proxy.conf
|
||||
- maps.conf
|
||||
- caches.conf
|
||||
template:
|
||||
src: "{{ item }}.j2"
|
||||
dest: "/etc/nginx/conf.d/{{ item }}"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue