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=6d3a676aa0d2c91bc1a7c923ea18ddfff8ead747;hp=b977018025287c576a429692c0f62c11c0269e37;hb=refs%2Fchanges%2F44%2F5544%2F1;hpb=6a14a3b273fabd44d24a75417b4e586fb3020c2b 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: