Use /etc/systemd/system/*.service.d/evolinux.conf and fix systemd unit
This commit is contained in:
parent
3882a366e4
commit
139a27383d
|
@ -34,10 +34,10 @@
|
|||
tags:
|
||||
- varnish
|
||||
|
||||
- name: Modify Varnish configuration files
|
||||
- name: Override Varnish systemd unit
|
||||
template:
|
||||
src: varnish.conf.j2
|
||||
dest: /etc/systemd/system/varnish.service.d/varnish.conf
|
||||
dest: /etc/systemd/system/varnish.service.d/evolinux.conf
|
||||
force: yes
|
||||
notify: reload systemd
|
||||
tags:
|
||||
|
|
|
@ -1,7 +1,5 @@
|
|||
# {{ ansible_managed }}
|
||||
|
||||
[Service]
|
||||
ExecStart=
|
||||
ExecStart=/usr/sbin/varnishd -a {{ varnish_addresses | join(',') }} -T {{ varnish_management_address }} -f {{ varnish_config_file }} -S {{ varnish_secret_file }} -s {{ varnish_storage }} -p thread_pools={{ varnish_thread_pools }} -p thread_pool_add_delay={{ varnish_thread_pool_add_delay }} -p thread_pool_min={{ varnish_thread_pool_min }} -p thread_pool_max={{ varnish_thread_pool_max }}
|
||||
ExecReload=
|
||||
ExecReload=/etc/varnish/reload-vcl.sh
|
||||
|
|
Loading…
Reference in a new issue