]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
nfs: add missing | bool filters
authorGuillaume Abrioux <gabrioux@redhat.com>
Tue, 25 Jun 2019 15:11:28 +0000 (17:11 +0200)
committerGuillaume Abrioux <gabrioux@redhat.com>
Wed, 26 Jun 2019 11:13:11 +0000 (13:13 +0200)
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>
(cherry picked from commit 2b9fb377a88d0ad5d888e57ee1929390bcb873c0)

roles/ceph-nfs/tasks/pre_requisite_non_container_red_hat.yml

index 8d80a036b379579ca04716eedd5cdb0b20dafd7a..a08d9c15a5e9da54cdae993881471b5b22a4b9e5 100644 (file)
@@ -11,7 +11,7 @@
         gpgkey: "{{ ceph_stable_key }}"
         baseurl: "{{ ceph_mirror }}/nfs-ganesha/rpm-{{ nfs_ganesha_stable_branch }}/{{ ceph_release }}/$basearch"
       when:
-        - nfs_ganesha_stable
+        - nfs_ganesha_stable | bool
         - ceph_repository == 'community'
 
     - name: red hat based systems - dev repo related tasks
@@ -30,7 +30,7 @@
             group: root
             backup: yes
       when:
-        - nfs_ganesha_dev
+        - nfs_ganesha_dev | bool
         - ceph_repository == 'dev'
 
 - name: red hat based systems - install nfs packages
@@ -49,4 +49,4 @@
         state: "{{ (upgrade_ceph_packages|bool) | ternary('latest','present') }}"
       register: result
       until: result is succeeded
-      when: nfs_obj_gw
+      when: nfs_obj_gw | bool