From f7e2b2c608eef4bbba47586f1e24d6ade1572758 Mon Sep 17 00:00:00 2001 From: Gaudenz Steinlin Date: Mon, 10 Aug 2020 11:52:56 +0200 Subject: [PATCH] openstack: use ceph_keyring_permissions by default Otherwise this task fails if no permission is set on the item. Previously the code omited the mode parameter if it was not set, but this was lost with commit ab370b6ad823e551cfc324fd9c264633a34b72b5. Signed-off-by: Gaudenz Steinlin --- roles/ceph-osd/tasks/openstack_config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/ceph-osd/tasks/openstack_config.yml b/roles/ceph-osd/tasks/openstack_config.yml index 8a16ca025..e1ea5de5d 100644 --- a/roles/ceph-osd/tasks/openstack_config.yml +++ b/roles/ceph-osd/tasks/openstack_config.yml @@ -49,7 +49,7 @@ content: "{{ item.0.stdout + '\n' }}" owner: "{{ ceph_uid if containerized_deployment | bool else 'ceph' }}" group: "{{ ceph_uid if containerized_deployment | bool else 'ceph' }}" - mode: "{{ item.0.item.mode }}" + mode: "{{ item.0.item.mode | default(ceph_keyring_permissions) }}" with_nested: - "{{ _osp_keys.results }}" - "{{ groups[mon_group_name] }}"