mirror of https://github.com/ceph/ceph-ansible.git
Merge pull request #533 from ceph/use-ansible-version
use the ansible_version variablepull/535/head
commit
dfcaf1b6d0
|
@ -21,13 +21,9 @@
|
|||
ceph_stable_rh_storage and
|
||||
{{ ansible_distribution_version | version_compare('7.1', '<') }}
|
||||
|
||||
- name: check ansible version
|
||||
local_action: shell ansible --version | awk '/[0-9].[0-9].[0-9]/ {print $2}'
|
||||
changed_when: false
|
||||
become: false
|
||||
register: ansible__version
|
||||
|
||||
- name: fail on unsupported ansible version
|
||||
fail:
|
||||
msg: "Ansible version must be >= 1.9, please update!"
|
||||
when: "{{ ansible__version.stdout | version_compare('1.9', '<') }}"
|
||||
when:
|
||||
ansible_version.major|int == 1 and
|
||||
ansible_version.minor|int < 9
|
||||
|
|
Loading…
Reference in New Issue