From b1dfe3f03e102222b0a81bf916ccc8a91d917931 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Han?= Date: Mon, 10 Dec 2018 14:43:30 +0100 Subject: [PATCH] config: only pre-create ceph dirs on containers MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- roles/ceph-config/tasks/main.yml | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/roles/ceph-config/tasks/main.yml b/roles/ceph-config/tasks/main.yml index 3b87f4415..62fb1a2cf 100644 --- a/roles/ceph-config/tasks/main.yml +++ b/roles/ceph-config/tasks/main.yml @@ -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 @@ -120,6 +117,9 @@ - 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 }}" @@ -155,14 +155,6 @@ 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: