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;fp=apps%2Fceph%2Fkubespray%2Fplaybooks%2Froles%2Finstall%2Ftasks%2Fmain.yaml;h=6d3a676aa0d2c91bc1a7c923ea18ddfff8ead747;hp=b977018025287c576a429692c0f62c11c0269e37;hb=bb140ce9543b98143bc336287b12bb88e608bbd6;hpb=fbaeba5374ee22e2e629e116af0c5510db0f5331 diff --git a/apps/ceph/kubespray/playbooks/roles/install/tasks/main.yaml b/apps/ceph/kubespray/playbooks/roles/install/tasks/main.yaml index b977018..6d3a676 100644 --- a/apps/ceph/kubespray/playbooks/roles/install/tasks/main.yaml +++ b/apps/ceph/kubespray/playbooks/roles/install/tasks/main.yaml @@ -151,10 +151,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: