forked from evolix/ansible-roles
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:
|
tags:
|
||||||
- varnish
|
- varnish
|
||||||
|
|
||||||
- name: Modify Varnish configuration files
|
- name: Override Varnish systemd unit
|
||||||
template:
|
template:
|
||||||
src: varnish.conf.j2
|
src: varnish.conf.j2
|
||||||
dest: /etc/systemd/system/varnish.service.d/varnish.conf
|
dest: /etc/systemd/system/varnish.service.d/evolinux.conf
|
||||||
force: yes
|
force: yes
|
||||||
notify: reload systemd
|
notify: reload systemd
|
||||||
tags:
|
tags:
|
||||||
|
|
|
@ -1,7 +1,5 @@
|
||||||
# {{ ansible_managed }}
|
# {{ ansible_managed }}
|
||||||
|
|
||||||
[Service]
|
[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 }}
|
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
|
ExecReload=/etc/varnish/reload-vcl.sh
|
||||||
|
|
Loading…
Reference in a new issue