Fix issue in Varnish systemd unit

The ExecReload key was not overridden correctly.
This commit is contained in:
Romain Dessort 2017-05-23 11:37:47 -04:00
parent 4ca37fddbc
commit 45fbbef950
3 changed files with 5 additions and 0 deletions

View File

@ -4,3 +4,6 @@
name: varnish
state: reloaded
daemon_reload: yes
- name: reload systemd
command: systemctl daemon-reload

View File

@ -40,6 +40,7 @@
dest: /etc/systemd/system/varnish.service.d/varnish.conf
force: yes
backup: yes
notify: reload systemd
tags:
- varnish

View File

@ -3,4 +3,5 @@
[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