diff --git a/tasks/redhat.yml b/tasks/redhat.yml index d66152c..b074538 100644 --- a/tasks/redhat.yml +++ b/tasks/redhat.yml @@ -1,7 +1,7 @@ --- - name: "[EL] Fail if distro is not supported nor tested" fail: msg="The role is designed only for RedHat/CentOS 7.2 or later" - when: "ansible_distribution not in ('RedHat', 'CentOS') or {{ ansible_distribution_version | version_compare('7.2', '<') }}" + when: "ansible_distribution not in ('RedHat', 'CentOS') or ( ansible_distribution_version | version_compare('7.2', '<') )" - name: "[EL] Add Docker yum repository" copy: