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
Sébastien Han 2018-04-23 09:52:18 +02:00 committed by Guillaume Abrioux
parent 85732d11b9
commit 74494253fa
1 changed files with 1 additions and 15 deletions

View File

@ -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"))