From 4159d1f4cae0a2b9d8918cc0bd1aac23bd75d5a2 Mon Sep 17 00:00:00 2001 From: Russell Teague Date: Tue, 31 Jan 2017 10:57:09 -0500 Subject: Fail on Ansible version 2.2.1.0 Due to issues with Ansible 2.2.1.0, the version verification has been updated to fail when attempting to use that version. --- callback_plugins/aa_version_requirement.py | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/callback_plugins/aa_version_requirement.py b/callback_plugins/aa_version_requirement.py index 1cca19a45..40affb18b 100644 --- a/callback_plugins/aa_version_requirement.py +++ b/callback_plugins/aa_version_requirement.py @@ -30,7 +30,12 @@ else: # Set to minimum required Ansible version REQUIRED_VERSION = '2.2.0.0' -DESCRIPTION = "Supported versions: %s or newer" % REQUIRED_VERSION +DESCRIPTION = "Supported versions: %s or newer (except 2.2.1.0)" % REQUIRED_VERSION +FAIL_ON_2_2_1_0 = "There are known issues with Ansible version 2.2.1.0 which " \ + "are impacting OpenShift-Ansible. Please use Ansible " \ + "version 2.2.0.0 or a version greater than 2.2.1.0. " \ + "See this issue for more details: " \ + "https://github.com/openshift/openshift-ansible/issues/3111" def version_requirement(version): @@ -58,3 +63,9 @@ class CallbackModule(CallbackBase): 'FATAL: Current Ansible version (%s) is not supported. %s' % (__version__, DESCRIPTION), color='red') sys.exit(1) + + if __version__ == '2.2.1.0': + display( + 'FATAL: Current Ansible version (%s) is not supported. %s' + % (__version__, FAIL_ON_2_2_1_0), color='red') + sys.exit(1) -- cgit v1.2.3