From: Florian Haas Date: Fri, 30 Jun 2017 08:17:23 +0000 (+0200) Subject: Ensure that ceph-mon applies mon directory ownership recursively X-Git-Tag: v2.3.0rc2~15^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F1636%2Fhead;p=ceph-ansible.git Ensure that ceph-mon applies mon directory ownership recursively Fixes #1635. Signed-off-by: Florian Haas --- diff --git a/roles/ceph-mon/tasks/deploy_monitors.yml b/roles/ceph-mon/tasks/deploy_monitors.yml index a8bea37e7..f431a0509 100644 --- a/roles/ceph-mon/tasks/deploy_monitors.yml +++ b/roles/ceph-mon/tasks/deploy_monitors.yml @@ -29,13 +29,14 @@ mode: "0600" when: cephx -- name: create monitor directory +- name: create (and fix ownership of) monitor directory file: path: /var/lib/ceph/mon/{{ cluster }}-{{ monitor_name }} state: directory owner: "ceph" group: "ceph" mode: "0755" + recurse: true - name: ceph monitor mkfs with keyring command: ceph-mon --cluster {{ cluster }} --setuser ceph --setgroup ceph --mkfs -i {{ monitor_name }} --fsid {{ fsid }} --keyring /var/lib/ceph/tmp/keyring.mon.{{ monitor_name }}