diff --git a/ansible/roles/nova/tasks/ceph.yml b/ansible/roles/nova/tasks/ceph.yml index 45b9d30d24..9bc09e8165 100644 --- a/ansible/roles/nova/tasks/ceph.yml +++ b/ansible/roles/nova/tasks/ceph.yml @@ -48,6 +48,8 @@ command: docker exec ceph_mon ceph auth get-key client.cinder register: cinder_cephx_raw_key delegate_to: "{{ groups['ceph-mon'][0] }}" + when: + - cinder_backend_ceph | bool changed_when: False run_once: True @@ -72,7 +74,7 @@ enabled: true - uuid: "{{ cinder_rbd_secret_uuid }}" name: client.cinder secret - enabled: "{{ cinder_backend_ceph }}" + enabled: "{{ cinder_backend_ceph | bool }}" - name: Pushing secrets key for libvirt copy: @@ -88,4 +90,4 @@ enabled: true - uuid: "{{ cinder_rbd_secret_uuid }}" content: "{{ cinder_cephx_raw_key.stdout }}" - enabled: "{{ cinder_backend_ceph }}" + enabled: "{{ cinder_backend_ceph | bool }}"