From 18c0c7a508efc47382d42fafb9ce9cd01885c78f Mon Sep 17 00:00:00 2001 From: Guillaume Abrioux Date: Tue, 3 Apr 2018 13:41:07 +0200 Subject: [PATCH] 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 --- roles/ceph-config/tasks/main.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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 -- 2.39.5