From 3b1ed33e4be0c0c1de0cb1fd342fcab860f973dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gabriel=20P=C3=A9riard-Tremblay?= Date: Tue, 15 Nov 2016 14:48:28 -0500 Subject: [PATCH] Varnish role idempotent --- varnish/tasks/main.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/varnish/tasks/main.yml b/varnish/tasks/main.yml index b9589d49..a2a17baf 100644 --- a/varnish/tasks/main.yml +++ b/varnish/tasks/main.yml @@ -12,13 +12,11 @@ copy: src: "/lib/systemd/system/varnish.service" dest: "/etc/systemd/system/" + force: no - name: Modify Varnish configuration file lineinfile: dest: "/etc/systemd/system/varnish.service" regexp: "^ExecStart=" - 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 + 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" notify: reload systemctl