summaryrefslogtreecommitdiffstats
path: root/playbooks/common
diff options
context:
space:
mode:
authorAndrew Butcher <abutcher@afrolegs.com>2016-07-20 19:05:06 -0400
committerGitHub <noreply@github.com>2016-07-20 19:05:06 -0400
commitd365ed2df542efa9cfa96fb468761cf2242ce8e5 (patch)
tree63544d7986e9f14f43f78bff6262197d6ac50a26 /playbooks/common
parentc257b47a9138eff4e384218a8eef23f9bfeb701f (diff)
parentc3c88fb35f8f8541b066b6a25f976e53b1813d1d (diff)
downloadopenshift-d365ed2df542efa9cfa96fb468761cf2242ce8e5.tar.gz
openshift-d365ed2df542efa9cfa96fb468761cf2242ce8e5.tar.bz2
openshift-d365ed2df542efa9cfa96fb468761cf2242ce8e5.tar.xz
openshift-d365ed2df542efa9cfa96fb468761cf2242ce8e5.zip
Merge pull request #2189 from abutcher/ansible-version-check
Check ansible version prior to evaluating cluster hosts and groups.
Diffstat (limited to 'playbooks/common')
-rw-r--r--playbooks/common/openshift-cluster/verify_ansible_version.yml10
1 files changed, 10 insertions, 0 deletions
diff --git a/playbooks/common/openshift-cluster/verify_ansible_version.yml b/playbooks/common/openshift-cluster/verify_ansible_version.yml
new file mode 100644
index 000000000..2a143b065
--- /dev/null
+++ b/playbooks/common/openshift-cluster/verify_ansible_version.yml
@@ -0,0 +1,10 @@
+---
+- hosts: localhost
+ connection: local
+ become: no
+ gather_facts: no
+ tasks:
+ - name: Verify Ansible version is greater than or equal to 2.1.0.0
+ fail:
+ msg: "Unsupported ansible version: {{ ansible_version.full }} found"
+ when: not ansible_version.full | version_compare('2.1.0.0', 'ge')