mirror of https://github.com/ceph/ceph-ansible.git
Updated use of deprecated filter
This was removed in Ansible 2.9.
[DEPRECATION WARNING]: Using tests as filters is deprecated. Instead of
using `result|version_compare` use `result is version_compare`. This
feature will be removed in version 2.9. Deprecation warnings can be
disabled by setting deprecation_warnings=False in ansible.cfg.
Rename 'version_compare' to the function 'version'.
version_compose was renamed to version since ansible 2.5
Signed-off-by: abaird-rh <abaird@redhat.com>
(cherry picked from commit eb71244bfd
)
pull/5299/head
parent
58e4992440
commit
c5e48dc316
|
@ -2,34 +2,34 @@
|
||||||
- name: set_fact ceph_release jewel
|
- name: set_fact ceph_release jewel
|
||||||
set_fact:
|
set_fact:
|
||||||
ceph_release: jewel
|
ceph_release: jewel
|
||||||
when: ceph_version.split('.')[0] is version_compare('10', '==')
|
when: ceph_version.split('.')[0] is version('10', '==')
|
||||||
|
|
||||||
- name: set_fact ceph_release kraken
|
- name: set_fact ceph_release kraken
|
||||||
set_fact:
|
set_fact:
|
||||||
ceph_release: kraken
|
ceph_release: kraken
|
||||||
when: ceph_version.split('.')[0] is version_compare('11', '==')
|
when: ceph_version.split('.')[0] is version('11', '==')
|
||||||
|
|
||||||
- name: set_fact ceph_release luminous
|
- name: set_fact ceph_release luminous
|
||||||
set_fact:
|
set_fact:
|
||||||
ceph_release: luminous
|
ceph_release: luminous
|
||||||
when: ceph_version.split('.')[0] is version_compare('12', '==')
|
when: ceph_version.split('.')[0] is version('12', '==')
|
||||||
|
|
||||||
- name: set_fact ceph_release mimic
|
- name: set_fact ceph_release mimic
|
||||||
set_fact:
|
set_fact:
|
||||||
ceph_release: mimic
|
ceph_release: mimic
|
||||||
when: ceph_version.split('.')[0] is version_compare('13', '==')
|
when: ceph_version.split('.')[0] is version('13', '==')
|
||||||
|
|
||||||
- name: set_fact ceph_release nautilus
|
- name: set_fact ceph_release nautilus
|
||||||
set_fact:
|
set_fact:
|
||||||
ceph_release: nautilus
|
ceph_release: nautilus
|
||||||
when: ceph_version.split('.')[0] is version_compare('14', '==')
|
when: ceph_version.split('.')[0] is version('14', '==')
|
||||||
|
|
||||||
- name: set_fact ceph_release octopus
|
- name: set_fact ceph_release octopus
|
||||||
set_fact:
|
set_fact:
|
||||||
ceph_release: octopus
|
ceph_release: octopus
|
||||||
when: ceph_version.split('.')[0] is version_compare('15', '==')
|
when: ceph_version.split('.')[0] is version('15', '==')
|
||||||
|
|
||||||
- name: set_fact ceph_release pacific
|
- name: set_fact ceph_release pacific
|
||||||
set_fact:
|
set_fact:
|
||||||
ceph_release: pacific
|
ceph_release: pacific
|
||||||
when: ceph_version.split('.')[0] is version_compare('16', '==')
|
when: ceph_version.split('.')[0] is version('16', '==')
|
||||||
|
|
|
@ -2,34 +2,34 @@
|
||||||
- name: set_fact ceph_release jewel
|
- name: set_fact ceph_release jewel
|
||||||
set_fact:
|
set_fact:
|
||||||
ceph_release: jewel
|
ceph_release: jewel
|
||||||
when: ceph_version.split('.')[0] is version_compare('10', '==')
|
when: ceph_version.split('.')[0] is version('10', '==')
|
||||||
|
|
||||||
- name: set_fact ceph_release kraken
|
- name: set_fact ceph_release kraken
|
||||||
set_fact:
|
set_fact:
|
||||||
ceph_release: kraken
|
ceph_release: kraken
|
||||||
when: ceph_version.split('.')[0] is version_compare('11', '==')
|
when: ceph_version.split('.')[0] is version('11', '==')
|
||||||
|
|
||||||
- name: set_fact ceph_release luminous
|
- name: set_fact ceph_release luminous
|
||||||
set_fact:
|
set_fact:
|
||||||
ceph_release: luminous
|
ceph_release: luminous
|
||||||
when: ceph_version.split('.')[0] is version_compare('12', '==')
|
when: ceph_version.split('.')[0] is version('12', '==')
|
||||||
|
|
||||||
- name: set_fact ceph_release mimic
|
- name: set_fact ceph_release mimic
|
||||||
set_fact:
|
set_fact:
|
||||||
ceph_release: mimic
|
ceph_release: mimic
|
||||||
when: ceph_version.split('.')[0] is version_compare('13', '==')
|
when: ceph_version.split('.')[0] is version('13', '==')
|
||||||
|
|
||||||
- name: set_fact ceph_release nautilus
|
- name: set_fact ceph_release nautilus
|
||||||
set_fact:
|
set_fact:
|
||||||
ceph_release: nautilus
|
ceph_release: nautilus
|
||||||
when: ceph_version.split('.')[0] is version_compare('14', '==')
|
when: ceph_version.split('.')[0] is version('14', '==')
|
||||||
|
|
||||||
- name: set_fact ceph_release octopus
|
- name: set_fact ceph_release octopus
|
||||||
set_fact:
|
set_fact:
|
||||||
ceph_release: octopus
|
ceph_release: octopus
|
||||||
when: ceph_version.split('.')[0] is version_compare('15', '==')
|
when: ceph_version.split('.')[0] is version('15', '==')
|
||||||
|
|
||||||
- name: set_fact ceph_release pacific
|
- name: set_fact ceph_release pacific
|
||||||
set_fact:
|
set_fact:
|
||||||
ceph_release: pacific
|
ceph_release: pacific
|
||||||
when: ceph_version.split('.')[0] is version_compare('16', '==')
|
when: ceph_version.split('.')[0] is version('16', '==')
|
||||||
|
|
|
@ -39,7 +39,7 @@
|
||||||
- name: fail on unsupported distribution for red hat ceph storage
|
- name: fail on unsupported distribution for red hat ceph storage
|
||||||
fail:
|
fail:
|
||||||
msg: "Distribution not supported {{ ansible_distribution_version }} by Red Hat Ceph Storage, only RHEL >= 8.2"
|
msg: "Distribution not supported {{ ansible_distribution_version }} by Red Hat Ceph Storage, only RHEL >= 8.2"
|
||||||
when: ansible_distribution_version | version_compare('8.2', '<')
|
when: ansible_distribution_version is version('8.2', '<')
|
||||||
|
|
||||||
- name: subscription manager related tasks
|
- name: subscription manager related tasks
|
||||||
when: ceph_repository_type == 'cdn'
|
when: ceph_repository_type == 'cdn'
|
||||||
|
|
Loading…
Reference in New Issue