X-Git-Url: https://gerrit.nordix.org/gitweb?p=infra%2Fstack%2Fkubernetes.git;a=blobdiff_plain;f=apps%2Fceph%2Fkubespray%2Fplaybooks%2Froles%2Finstall%2Ftasks%2Fmain.yaml;h=fc8f2dcf84d6a0b062097ae223696a7f7f8675ac;hp=90fb05b65c7024ee2cbfc08798e885f794d4d37f;hb=bae763edf77d9870274ee0253a14a9fc8d96cecb;hpb=5878b2263a6c38ac6ca786e663ca3db97fb9ca2c diff --git a/apps/ceph/kubespray/playbooks/roles/install/tasks/main.yaml b/apps/ceph/kubespray/playbooks/roles/install/tasks/main.yaml index 90fb05b..fc8f2dc 100644 --- a/apps/ceph/kubespray/playbooks/roles/install/tasks/main.yaml +++ b/apps/ceph/kubespray/playbooks/roles/install/tasks/main.yaml @@ -160,10 +160,19 @@ with_items: - pool.yaml.j2 - storageclass.yaml.j2 + loop_control: + loop_var: config_file + +- name: Create rook file system + k8s: + state: present + definition: "{{ lookup('template', config_file) }}" + with_items: - filesystem.yaml.j2 - filesystem-storageclass.yaml.j2 loop_control: loop_var: config_file + when: rook_filesystem|bool - name: Create rook external dashboard k8s: