Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- - name: Verify whether the PVC is created
- command: "kubectl get pvc {{pvc_name}} -o json"
- register: result
- - set_fact:
- pvcstatus: "{{ result.stdout|from_json }}"
- - debug: var=pvcstatus
- - name: check the pvc status
- debug:
- msg: "PVC status is {{pvcstatus.status.phase}}"
- failed_when: 'pvcstatus.status.phase is not "Bound"'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement