From e896459d060e6489b84e1470de41b4e2a2ce8bdc Mon Sep 17 00:00:00 2001 From: Ludovic Poujol Date: Tue, 28 Feb 2023 15:24:01 +0100 Subject: [PATCH] varnish: add variable varnish_update_config to disable configuration update --- CHANGELOG.md | 1 + varnish/defaults/main.yml | 1 + varnish/tasks/main.yml | 1 + 3 files changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index ca6f8701..62732fdd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -21,6 +21,7 @@ The **patch** part changes is incremented if multiple releases happen the same m * postfix: Add task for enable mailgraph on packmail * apache: add tash for enable mailgraph on default vhost and index.html * php: add variables php_version when sury is activated for each Debian version +* varnish: add variable varnish_update_config to disable configuration update ### Changed diff --git a/varnish/defaults/main.yml b/varnish/defaults/main.yml index acc9b114..ec8a251e 100644 --- a/varnish/defaults/main.yml +++ b/varnish/defaults/main.yml @@ -17,6 +17,7 @@ varnish_jail: "unix,user=vcache" varnish_additional_options: "" varnish_config_file: /etc/varnish/default.vcl +varnish_update_config: True varnish_secret_file: /etc/varnish/secret varnish_tmp_dir: /var/tmp-vcache \ No newline at end of file diff --git a/varnish/tasks/main.yml b/varnish/tasks/main.yml index 7af86b72..cca302bb 100644 --- a/varnish/tasks/main.yml +++ b/varnish/tasks/main.yml @@ -137,6 +137,7 @@ dest: "{{ varnish_config_file }}" mode: "0644" force: yes + when: "{{ varnish_update_config }}" loop: "{{ query('first_found', templates) }}" vars: templates: