diff options
author | Andrew Butcher <abutcher@redhat.com> | 2016-07-20 14:09:23 -0400 |
---|---|---|
committer | Andrew Butcher <abutcher@redhat.com> | 2016-07-20 15:59:57 -0400 |
commit | c3c88fb35f8f8541b066b6a25f976e53b1813d1d (patch) | |
tree | 2f5e6f1f3cde0e7cbdc1360c5180a23811dac554 /playbooks/common/openshift-cluster | |
parent | a7e6148bb5c5fa9746de5c351a6b0a4d065d82d4 (diff) | |
download | openshift-c3c88fb35f8f8541b066b6a25f976e53b1813d1d.tar.gz openshift-c3c88fb35f8f8541b066b6a25f976e53b1813d1d.tar.bz2 openshift-c3c88fb35f8f8541b066b6a25f976e53b1813d1d.tar.xz openshift-c3c88fb35f8f8541b066b6a25f976e53b1813d1d.zip |
Check ansible version prior to evaluating cluster hosts and groups.
Diffstat (limited to 'playbooks/common/openshift-cluster')
-rw-r--r-- | playbooks/common/openshift-cluster/verify_ansible_version.yml | 10 |
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') |