With jewel, `bootstrap_rbd_keyring` is not set because of this condition:
```
when:
- ceph_release_num.{{ ceph_release }} >= ceph_release_num.luminous
```
Therefore, the task `try to fetch ceph config and keys` will fail.
Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
set_fact:
ceph_config_keys:
- /etc/ceph/{{ cluster }}.client.admin.keyring
- - "{{ bootstrap_rbd_keyring | default([]) }}"
+ - "{{ bootstrap_rbd_keyring | default('') }}"
- name: stat for ceph config and keys
local_action: stat path={{ fetch_directory }}/{{ fsid }}/{{ item }}
failed_when: false
always_run: true
register: statconfig
+ when: "item | length > 0"
- name: try to fetch ceph config and keys
copy:
- "{{ ceph_config_keys }}"
- "{{ statconfig.results }}"
when:
+ - not item.1.get('skipped')
- item.1.stat.exists == true
- name: set selinux permissions