diff --git a/ansible/roles/nova/tasks/external-ceph.yml b/ansible/roles/nova/tasks/external-ceph.yml index 4aa966a370..5e3749508f 100644 --- a/ansible/roles/nova/tasks/external-ceph.yml +++ b/ansible/roles/nova/tasks/external-ceph.yml @@ -14,7 +14,7 @@ failed_when: not nova_cephx_keyring_file.stat.exists - name: Check cinder keyring file - local_action: state path="{{ node_custom_config }}/nova/ceph.client.cinder.keyring" + local_action: stat path="{{ node_custom_config }}/nova/ceph.client.cinder.keyring" register: cinder_cephx_keyring_file failed_when: not cinder_cephx_keyring_file.stat.exists when: cinder_backend_ceph | bool