]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
config: use fact `ceph_uid`
authorGuillaume Abrioux <gabrioux@redhat.com>
Tue, 3 Apr 2018 11:41:07 +0000 (13:41 +0200)
committerSébastien Han <seb@redhat.com>
Wed, 4 Apr 2018 08:51:17 +0000 (10:51 +0200)
Use fact `ceph_uid` in the task which ensures `/etc/ceph` exists in
containerized deployments.

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
roles/ceph-config/tasks/main.yml

index 51fb77fa0823ed7d2aa6716624b37d1720ffc211..782a5d16242003c949aa8c9cad82025a89d2acae 100644 (file)
     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