kubespray/contrib/network-storage/heketi/roles/provision/tasks/main.yml

27 lines
847 B
YAML

---
- name: "Prepare kubernetes."
include_tasks: "kubernetes.yml"
- name: "Test heketi setup."
register: "heketi_service_state"
command: "kubectl get service heketi -o=name --ignore-not-found=true"
changed_when: false
- name: "Setup heketi."
when: "heketi_service_state.stdout == \"\""
include_tasks: "setup.yml"
- name: "Test storage class."
changed_when: false
command: "kubectl get storageclass gluster --ignore-not-found=true --output=json"
register: "storageclass"
- name: "Setup storage class."
when: "storageclass.stdout == \"\""
include_tasks: "storageclass.yml"
- name: "Test storage class."
changed_when: false
command: "kubectl get storageclass gluster --ignore-not-found=true --output=json"
register: "storageclass"
- name: "Ensure storage class is up."
assert: { that: "storageclass.stdout != \"\"" }