From 3d1fe4c4a24bba8e7bcbb069591bdef6070b5ce8 Mon Sep 17 00:00:00 2001 From: Gordon Schulz Date: Sat, 6 Mar 2021 11:50:38 +0100 Subject: [PATCH] Apply version() check See https://github.com/bertvv/ansible-role-samba/pull/61 --- templates/smb.conf.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/smb.conf.j2 b/templates/smb.conf.j2 index 2cb9c70..cfeba09 100644 --- a/templates/smb.conf.j2 +++ b/templates/smb.conf.j2 @@ -72,7 +72,7 @@ {% endif %} {% endif %} -{% if samba_mitigate_cve_2017_7494 and samba_version.stdout >= "3.5.0" and samba_version.stdout < "4.6.4" %} +{% if samba_mitigate_cve_2017_7494 and samba_version.stdout is version('3.5.0', '>=') and samba_version.stdout is version('4.6.4', '<') %} # Fix for CVE-2017-7494 in Samba versions from 3.5.0 and before 4.6.4 # https://access.redhat.com/security/cve/cve-2017-7494 nt pipe support = no