]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
config: only pre-create ceph dirs on containers
authorSébastien Han <seb@redhat.com>
Mon, 10 Dec 2018 13:43:30 +0000 (14:43 +0100)
committermergify[bot] <mergify[bot]@users.noreply.github.com>
Fri, 4 Jan 2019 13:57:40 +0000 (13:57 +0000)
We don't need to create the directories on non-containers, they are
created by the packages.

Closes: https://github.com/ceph/ceph-ansible/issues/3430
Signed-off-by: Sébastien Han <seb@redhat.com>
roles/ceph-config/tasks/main.yml

index 3b87f44156fafc3062630ef25c77b0f2e766cc93..62fb1a2cfe3e77a39ec741521cccf8c89427bc77 100644 (file)
@@ -1,7 +1,4 @@
 ---
-- name: include create_ceph_initial_dirs.yml
-  include_tasks: create_ceph_initial_dirs.yml
-
 # ceph-common
 - block:
   - name: create ceph conf directory
     - not containerized_deployment|bool
 
 - block:
+  - name: include create_ceph_initial_dirs.yml
+    include_tasks: create_ceph_initial_dirs.yml
+
   - name: create a local fetch directory if it does not exist
     file:
       path: "{{ fetch_directory }}"
     when:
       - generate_fsid
 
-  - name: ensure /etc/ceph exists
-    file:
-      path: /etc/ceph
-      state: directory
-      owner: "{{ ceph_uid }}"
-      group: "{{ ceph_uid }}"
-      mode: 0755
-
   - name: "generate {{ cluster }}.conf configuration file"
     action: config_template
     args: