From 6fe1fde54a3b3c88695ffcf8b5d5eead102db751 Mon Sep 17 00:00:00 2001 From: Steven Marks Date: Tue, 17 Dec 2019 09:52:59 +0000 Subject: [PATCH] Update sanity_checks.yml Ansible 2.9 (released Oct 31) removed the 'version_compare' filter (ref [ansible/issues/64174](http://guishunda.com/github_/ansible/ansible/issues/64174)) As such, the following line from configure.yml: ansible_distribution_version|version_compare(('7.4', '>=') Is throwing the following error: "AnsibleError: template error while templating string: no filter named 'version_compare'" --- tasks/sanity_checks.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/sanity_checks.yml b/tasks/sanity_checks.yml index ed3bbc7..d67974d 100644 --- a/tasks/sanity_checks.yml +++ b/tasks/sanity_checks.yml @@ -3,7 +3,7 @@ assert: that: - ansible_distribution in ["CentOS", "RedHat"] - - ansible_distribution_version | version_compare('7.4', '>=') + - ansible_distribution_version is version('7.4', '>=') - name: Sanity check of docker_storage_driver variable assert: