From: Guillaume Abrioux Date: Tue, 3 Apr 2018 11:41:07 +0000 (+0200) Subject: config: use fact `ceph_uid` X-Git-Tag: v3.1.0beta5~10 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=18c0c7a508efc47382d42fafb9ce9cd01885c78f;p=ceph-ansible.git config: use fact `ceph_uid` Use fact `ceph_uid` in the task which ensures `/etc/ceph` exists in containerized deployments. Signed-off-by: Guillaume Abrioux --- diff --git a/roles/ceph-config/tasks/main.yml b/roles/ceph-config/tasks/main.yml index 51fb77fa0..782a5d162 100644 --- a/roles/ceph-config/tasks/main.yml +++ b/roles/ceph-config/tasks/main.yml @@ -77,11 +77,9 @@ file: path: /etc/ceph state: directory - owner: 'ceph' - group: 'ceph' + owner: "{{ ceph_uid }}" + group: "{{ ceph_uid }}" mode: 0755 - when: - - groups.get(mon_group_name, []) | length == 0 - name: "generate {{ cluster }}.conf configuration file" action: config_template