2017-04-13 01:57:33 +08:00
|
|
|
---
|
2017-08-30 20:44:34 +08:00
|
|
|
- include: stat_ceph_files.yml
|
2017-04-13 01:57:33 +08:00
|
|
|
|
|
|
|
- name: try to fetch ceph config and keys
|
|
|
|
copy:
|
2017-07-13 22:22:54 +08:00
|
|
|
src: "{{ fetch_directory }}/{{ fsid }}/{{ item.0 }}"
|
2017-04-13 01:57:33 +08:00
|
|
|
dest: "{{ item.0 }}"
|
|
|
|
owner: root
|
|
|
|
group: root
|
2017-08-26 00:13:09 +08:00
|
|
|
mode: 0600
|
2017-04-13 01:57:33 +08:00
|
|
|
changed_when: false
|
|
|
|
with_together:
|
|
|
|
- "{{ ceph_config_keys }}"
|
2017-07-25 23:54:26 +08:00
|
|
|
- "{{ statconfig.results | default([]) }}"
|
2017-04-13 01:57:33 +08:00
|
|
|
when: item.1.stat.exists == true
|