mirror of https://github.com/ceph/ceph-ansible.git
nfs: add missing | bool filters
To address this warning: ``` [DEPRECATION WARNING]: evaluating nfs_ganesha_dev as a bare variable, this behaviour will go away and you might need to add |bool to the expression in the future ``` Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>pull/4128/head
parent
edb8d42596
commit
2b9fb377a8
|
@ -11,7 +11,7 @@
|
||||||
gpgkey: "{{ ceph_stable_key }}"
|
gpgkey: "{{ ceph_stable_key }}"
|
||||||
baseurl: "{{ ceph_mirror }}/nfs-ganesha/rpm-{{ nfs_ganesha_stable_branch }}/{{ ceph_release }}/$basearch"
|
baseurl: "{{ ceph_mirror }}/nfs-ganesha/rpm-{{ nfs_ganesha_stable_branch }}/{{ ceph_release }}/$basearch"
|
||||||
when:
|
when:
|
||||||
- nfs_ganesha_stable
|
- nfs_ganesha_stable | bool
|
||||||
- ceph_repository == 'community'
|
- ceph_repository == 'community'
|
||||||
|
|
||||||
- name: red hat based systems - dev repo related tasks
|
- name: red hat based systems - dev repo related tasks
|
||||||
|
@ -30,7 +30,7 @@
|
||||||
group: root
|
group: root
|
||||||
backup: yes
|
backup: yes
|
||||||
when:
|
when:
|
||||||
- nfs_ganesha_dev
|
- nfs_ganesha_dev | bool
|
||||||
- ceph_repository == 'dev'
|
- ceph_repository == 'dev'
|
||||||
|
|
||||||
- name: red hat based systems - install nfs packages
|
- name: red hat based systems - install nfs packages
|
||||||
|
@ -49,4 +49,4 @@
|
||||||
state: "{{ (upgrade_ceph_packages|bool) | ternary('latest','present') }}"
|
state: "{{ (upgrade_ceph_packages|bool) | ternary('latest','present') }}"
|
||||||
register: result
|
register: result
|
||||||
until: result is succeeded
|
until: result is succeeded
|
||||||
when: nfs_obj_gw
|
when: nfs_obj_gw | bool
|
||||||
|
|
Loading…
Reference in New Issue