summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTim Bielawa <timbielawa@gmail.com>2017-01-31 09:32:57 -0800
committerGitHub <noreply@github.com>2017-01-31 09:32:57 -0800
commitf02c2f2de47e905c92f3fdaaf077f0bfa845a537 (patch)
treeec0e9670b9aed359090d72f2b45e399e8c4e3b6d
parent369b713565e2af700124fd1375d2218c3ddeb2af (diff)
parent4159d1f4cae0a2b9d8918cc0bd1aac23bd75d5a2 (diff)
downloadopenshift-f02c2f2de47e905c92f3fdaaf077f0bfa845a537.tar.gz
openshift-f02c2f2de47e905c92f3fdaaf077f0bfa845a537.tar.bz2
openshift-f02c2f2de47e905c92f3fdaaf077f0bfa845a537.tar.xz
openshift-f02c2f2de47e905c92f3fdaaf077f0bfa845a537.zip
Merge pull request #3231 from mtnbikenc/ansible-version
Fail on Ansible version 2.2.1.0
-rw-r--r--callback_plugins/aa_version_requirement.py13
1 files changed, 12 insertions, 1 deletions
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)