varnish: permit included config
This commit is contained in:
parent
688f0505a8
commit
4ea69eea6d
|
@ -55,6 +55,7 @@
|
|||
template:
|
||||
src: "{{ item }}"
|
||||
dest: /etc/varnish/default.vcl
|
||||
mode: "0644"
|
||||
force: yes
|
||||
with_first_found:
|
||||
- "templates/varnish/default.{{ inventory_hostname }}.vcl.j2"
|
||||
|
@ -64,3 +65,23 @@
|
|||
notify: reload varnish
|
||||
tags:
|
||||
- varnish
|
||||
|
||||
- name: Create Varnish config dir
|
||||
file:
|
||||
path: /etc/varnish/conf.d
|
||||
state: directory
|
||||
mode: "0755"
|
||||
tags:
|
||||
- varnish
|
||||
|
||||
- name: Copy included Varnish config
|
||||
template:
|
||||
src: "{{ item }}"
|
||||
dest: /etc/varnish/conf.d/
|
||||
force: yes
|
||||
mode: "0644"
|
||||
with_fileglob:
|
||||
- "templates/varnish/conf.d/*.vcl"
|
||||
notify: reload varnish
|
||||
tags:
|
||||
- varnish
|
||||
|
|
Loading…
Reference in a new issue