Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- - name: Get cluster info
- ovirt_cluster_facts:
- auth: "{{ ovirt_auth }}"
- pattern: "name={{ cluster_name }}"
- fetch_nested: yes
- check_mode: "no"
- register: cluster_info
- - name: Set cluster upgrade status in progress
- no_log: false
- uri:
- url: "{{ ovirt_auth.url }}/clusters/{{ ovirt_clusters[0].id }}/upgrade"
- method: POST
- body_format: json
- validate_certs: false
- headers:
- Authorization: "Bearer {{ ovirt_auth.token }}"
- body:
- upgrade_action: start
- register: upgrade_set
- when: api_info.ovirt_api.product_info.version.major >= 4 and api_info.ovirt_api.product_info.version.minor >= 3
- - name: Get Host volumes with valid
- no_log: false
- uri:
- url: "{{ ovirt_auth.url }}/clusters/{{ ovirt_clusters[0].id }}/glustervolumes"
- method: GET
- body_format: json
- validate_certs: false
- return_content: yes
- headers:
- Authorization: "Bearer {{ ovirt_auth.token }}"
- register: json
- when: ovirt_clusters[0].gluster_service == True
Advertisement
Add Comment
Please, Sign In to add comment