Use /etc/systemd/system/*.service.d/evolinux.conf and fix systemd unit

This commit is contained in:
Gregory Colpart 2017-09-14 19:30:59 +02:00
parent 3882a366e4
commit 139a27383d
2 changed files with 2 additions and 4 deletions

View File

@ -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:

View File

@ -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