From c3c88fb35f8f8541b066b6a25f976e53b1813d1d Mon Sep 17 00:00:00 2001 From: Andrew Butcher Date: Wed, 20 Jul 2016 14:09:23 -0400 Subject: Check ansible version prior to evaluating cluster hosts and groups. --- playbooks/common/openshift-cluster/verify_ansible_version.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 playbooks/common/openshift-cluster/verify_ansible_version.yml (limited to 'playbooks/common/openshift-cluster') 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') -- cgit v1.2.3