mirror of https://github.com/ceph/ceph-ansible.git
mon: remove redundant copy task
We had twice the same task, also one was overriding the mode. Signed-off-by: Sébastien Han <seb@redhat.com>pull/2532/head
parent
85732d11b9
commit
74494253fa
|
@ -35,6 +35,7 @@
|
|||
src: "{{ fetch_directory }}/{{ fsid }}/{{ item.0 }}"
|
||||
dest: "{{ item.0 }}"
|
||||
owner: "{{ ceph_uid }}"
|
||||
group: "{{ ceph_uid }}"
|
||||
mode: 0600
|
||||
changed_when: false
|
||||
with_together:
|
||||
|
@ -43,18 +44,3 @@
|
|||
when:
|
||||
- item.1.stat.exists == true
|
||||
- item.0 | search("keyring")
|
||||
|
||||
- name: try to copy ceph config
|
||||
copy:
|
||||
src: "{{ fetch_directory }}/{{ fsid }}/{{ item.0 }}"
|
||||
dest: "{{ item.0 }}"
|
||||
owner: root
|
||||
group: root
|
||||
mode: 0644
|
||||
changed_when: false
|
||||
with_together:
|
||||
- "{{ ceph_config_keys }}"
|
||||
- "{{ statconfig.results }}"
|
||||
when:
|
||||
- item.1.stat.exists == true
|
||||
- not (item.0 | search("keyring"))
|
||||
|
|
Loading…
Reference in New Issue