From 74494253fa2768d3db973c4de88bb11e6a299f7f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Han?= Date: Mon, 23 Apr 2018 09:52:18 +0200 Subject: [PATCH] mon: remove redundant copy task MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We had twice the same task, also one was overriding the mode. Signed-off-by: Sébastien Han --- roles/ceph-mon/tasks/docker/copy_configs.yml | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/roles/ceph-mon/tasks/docker/copy_configs.yml b/roles/ceph-mon/tasks/docker/copy_configs.yml index d751f3d28..b08054414 100644 --- a/roles/ceph-mon/tasks/docker/copy_configs.yml +++ b/roles/ceph-mon/tasks/docker/copy_configs.yml @@ -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"))