--- # https://documenter.getpostman.com/view/14802249/TzkyNLMQ#intro - name: generate auth sessions from API delegate_to: localhost check_mode: no uri: url: "https://session.edis.at/kvm/v2/get/auth" method: POST body_format: form-urlencoded body: email: "{{ install.cloud.credentials.email }}" pw: "{{ install.cloud.credentials.password }}" status_code: 200 register: edis_kvm_auth_session_response - name: make sure server-id is in results assert: that: install.cloud.id in edis_kvm_auth_session_response.json.data - name: retrieve auth session for server-id set_fact: edis_kvm_auth_session: "{{ edis_kvm_auth_session_response.json.data[install.cloud.id] }}" - debug: var: edis_kvm_auth_session ## TODO: actually implement this ## - generate installer ISO ## - upload iso to public reachable server... (which one ???) ## - @API: download custom iso ## - @API: power off ## - @API: mount custom iso ## - @API: power on ## - wait for installer to finish (@API get powerstate?) ## - @API: umount custom iso ## - @API: power on