From ad5371b78db8b7ef6aadfedf13626954ea00d9a9 Mon Sep 17 00:00:00 2001 From: Andreas de Pretis Date: Mon, 23 Oct 2023 10:33:33 +0200 Subject: [PATCH 1/2] Although not reproducable at least with Ansible 2.14 this should fix https://github.com/geerlingguy/ansible-role-varnish/issues/116 --- tasks/setup-Debian.yml | 2 +- tasks/setup-RedHat.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tasks/setup-Debian.yml b/tasks/setup-Debian.yml index 9d292d1..ca4a45f 100644 --- a/tasks/setup-Debian.yml +++ b/tasks/setup-Debian.yml @@ -28,4 +28,4 @@ apt: name: "{{ varnish_modules_package_name }}" state: present - when: varnish_modules_package_name + when: varnish_modules_package_name is defined and varnish_modules_package_name|length > 0 diff --git a/tasks/setup-RedHat.yml b/tasks/setup-RedHat.yml index 946cca1..eea5cf9 100644 --- a/tasks/setup-RedHat.yml +++ b/tasks/setup-RedHat.yml @@ -46,4 +46,4 @@ yum: name: "{{ varnish_modules_package_name }}" state: present - when: varnish_modules_package_name + when: varnish_modules_package_name is defined and varnish_modules_package_name|length > 0 From dc8648e84346f1f8a0443a86e20c6097cb259f9e Mon Sep 17 00:00:00 2001 From: Andreas de Pretis Date: Tue, 24 Oct 2023 04:42:58 +0200 Subject: [PATCH 2/2] Update tasks/setup-Debian.yml Co-authored-by: Bilge --- tasks/setup-Debian.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/setup-Debian.yml b/tasks/setup-Debian.yml index ca4a45f..db56ce9 100644 --- a/tasks/setup-Debian.yml +++ b/tasks/setup-Debian.yml @@ -28,4 +28,4 @@ apt: name: "{{ varnish_modules_package_name }}" state: present - when: varnish_modules_package_name is defined and varnish_modules_package_name|length > 0 + when: varnish_modules_package_name|length