ceph-ansible/roles/ceph-docker-common/tasks/fetch_configs.yml

16 lines
367 B
YAML

---
- include: stat_ceph_files.yml
- name: try to fetch ceph config and keys
copy:
src: "{{ fetch_directory }}/{{ fsid }}/{{ item.0 }}"
dest: "{{ item.0 }}"
owner: root
group: root
mode: 0600
changed_when: false
with_together:
- "{{ ceph_config_keys }}"
- "{{ statconfig.results | default([]) }}"
when: item.1.stat.exists == true