From ba25087db911e782f7f0a596fb6bcaa98158b318 Mon Sep 17 00:00:00 2001 From: Marc Bihlmaier Date: Wed, 21 Apr 2021 16:59:18 +0200 Subject: [PATCH] fix when expression --- tasks/sysctl-setup.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tasks/sysctl-setup.yml b/tasks/sysctl-setup.yml index 764cd0e..8985ec8 100644 --- a/tasks/sysctl-setup.yml +++ b/tasks/sysctl-setup.yml @@ -41,7 +41,7 @@ - name: reload the sysctl parameters command: sysctl --system - when: sysctld.changed when: > - ansible_distribution != 'Debian' - or ansible_distribution_major_version | int < 10 + (ansible_distribution != 'Debian' + or ansible_distribution_major_version | int < 10) + and sysctld.changed