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>
---
-- 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: