forked from evolix/ansible-roles
Varnish role idempotent
This commit is contained in:
parent
1bb4840f48
commit
3b1ed33e4b
|
@ -12,13 +12,11 @@
|
||||||
copy:
|
copy:
|
||||||
src: "/lib/systemd/system/varnish.service"
|
src: "/lib/systemd/system/varnish.service"
|
||||||
dest: "/etc/systemd/system/"
|
dest: "/etc/systemd/system/"
|
||||||
|
force: no
|
||||||
|
|
||||||
- name: Modify Varnish configuration file
|
- name: Modify Varnish configuration file
|
||||||
lineinfile:
|
lineinfile:
|
||||||
dest: "/etc/systemd/system/varnish.service"
|
dest: "/etc/systemd/system/varnish.service"
|
||||||
regexp: "^ExecStart="
|
regexp: "^ExecStart="
|
||||||
line: |
|
line: "ExecStart=/usr/sbin/varnishd -a 0.0.0.0:80 -T localhost:6082 -f /etc/varnish/default.vcl -S /etc/varnish/secret -s malloc,2G -p thread_pools={{ thread_pools }} -p thread_pool_add_delay=2 -p thread_pool_min=500 -p thread_pool_max=5000"
|
||||||
ExecStart=/usr/sbin/varnishd -a 0.0.0.0:80 -T localhost:6082 -f /etc/varnish/default.vcl \
|
|
||||||
-S /etc/varnish/secret -s malloc,2G \
|
|
||||||
-p thread_pools={{ thread_pools }} -p thread_pool_add_delay=2 -p thread_pool_min=500 -p thread_pool_max=5000
|
|
||||||
notify: reload systemctl
|
notify: reload systemctl
|
||||||
|
|
Loading…
Reference in a new issue