]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
mon: remove redundant copy task
authorSébastien Han <seb@redhat.com>
Mon, 23 Apr 2018 07:52:18 +0000 (09:52 +0200)
committerGuillaume Abrioux <gabrioux@redhat.com>
Mon, 23 Apr 2018 16:34:58 +0000 (18:34 +0200)
We had twice the same task, also one was overriding the mode.

Signed-off-by: Sébastien Han <seb@redhat.com>
roles/ceph-mon/tasks/docker/copy_configs.yml

index d751f3d285b07b622cca6cff84bb62c357280846..b08054414a15b0514e8283d738d9c558fd39ee43 100644 (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:
   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"))