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 ab370b6ad8.

Signed-off-by: Gaudenz Steinlin <gaudenz.steinlin@cloudscale.ch>
pull/5948/head
Gaudenz Steinlin 2020-08-10 11:52:56 +02:00
parent 59d0f01992
commit f7e2b2c608
1 changed files with 1 additions and 1 deletions

View File

@ -49,7 +49,7 @@
content: "{{ item.0.stdout + '\n' }}" content: "{{ item.0.stdout + '\n' }}"
owner: "{{ ceph_uid if containerized_deployment | bool else 'ceph' }}" owner: "{{ ceph_uid if containerized_deployment | bool else 'ceph' }}"
group: "{{ 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: with_nested:
- "{{ _osp_keys.results }}" - "{{ _osp_keys.results }}"
- "{{ groups[mon_group_name] }}" - "{{ groups[mon_group_name] }}"