]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
Cleanup redundant command 2/head
authorSébastien Han <sebastien.han@enovance.com>
Mon, 3 Mar 2014 23:13:17 +0000 (00:13 +0100)
committerSébastien Han <sebastien.han@enovance.com>
Mon, 3 Mar 2014 23:13:17 +0000 (00:13 +0100)
Since the fetch module takes care of the permissions it is not necessary
to set them with another module. The second command is useless.

Signed-off-by: Sébastien Han <sebastien.han@enovance.com>
roles/mds/tasks/main.yml
roles/osd/tasks/main.yml

index e30291d1c6be3c65b5a100d8bdfb3cd731e3aff7..e3fd270aab88ad61186a17743c604e06d0ed1bf1 100644 (file)
@@ -6,10 +6,6 @@
   copy: src=fetch/{{ hostvars[groups['mons'][0]]['ansible_hostname'] }}/var/lib/ceph/bootstrap-mds/ceph.keyring dest=/var/lib/ceph/bootstrap-mds/ceph.keyring owner=root group=root mode=600
   when: cephx
 
-- name: Set MDS bootstrap key permissions
-  file: path=/var/lib/ceph/bootstrap-mds/ceph.keyring mode=0600 owner=root group=root
-  when: cephx
-
 - name: Create MDS directory
   action: file path=/var/lib/ceph/mds/ceph-{{ ansible_hostname }} state=directory owner=root group=root mode=0644
   when: cephx
index 68ac4c7eb5bdb1e8a91b6bded1ab3245ee59f623..1efe17b7a2ecf72cf8af593f4929ffcada4a6ad2 100644 (file)
@@ -9,10 +9,6 @@
   copy: src=fetch/{{ hostvars[groups['mons'][0]]['ansible_hostname'] }}/var/lib/ceph/bootstrap-osd/ceph.keyring dest=/var/lib/ceph/bootstrap-osd/ceph.keyring owner=root group=root mode=600
   when: cephx
 
-- name: Set OSD bootstrap key permissions
-  file: path=/var/lib/ceph/bootstrap-osd/ceph.keyring mode=0600 owner=root group=root
-  when: cephx
-
 # NOTE (leseb): current behavior of ceph-disk is to fail when the device is mounted "stderr: ceph-disk: Error: Device is mounted: /dev/sdb1"
 # the return code is 1, which makes sense, however ideally if ceph-disk will detect a ceph partition
 # it should exist we rc=0 and don't do anything unless we do something like --force