From 6ca9d606124169be5068cd111b9f0d3c3c3e9382 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20Mass=C3=A9?= Date: Tue, 12 Mar 2019 09:28:14 +0100 Subject: [PATCH] See #45: ensure Ansible 2.4.6 at least is installed --- tasks/steps/ansible_requirements.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/tasks/steps/ansible_requirements.yml b/tasks/steps/ansible_requirements.yml index 7a8cf99..13a3d76 100644 --- a/tasks/steps/ansible_requirements.yml +++ b/tasks/steps/ansible_requirements.yml @@ -1,9 +1,12 @@ --- -- name: Verify that Ansible version is >= 2.4 +- name: Verify that Ansible version is >= 2.4.6 assert: - that: "ansible_version.full is version_compare('2.4', '>=')" - msg: This module requires at least Ansible 2.4 + that: "ansible_version.full is version_compare('2.4.6', '>=')" + msg: > + This module requires at least Ansible 2.4.6. The version that comes + with RHEL and CentOS by default (2.4.2) has a known bug that prevent + this role from running properly. - name: Check if jmespath is installed locally debug: msg={{dummy|json_query('@')}}