|
- name: Create VM on RHV hosts: localhost connection: local gather_facts: false tasks: - name: Login to oVirt ovirt_auth: url: "https://172.16.11.65/ovirt-engine/api/" username: "admin@internal" password: "password1234" ca_file: "/etc/pki/ovirt-engine/ca.pem" insecure: "true"
- name: Debug ovirt auth result debug: msg: "{{ ovirt_auth }}"
- name: Provisioning VM from template ovirt_vm: auth: "{{ ovirt_auth }}" state: running name: bimo_ansiblevm template: VmTestTemplate cluster: root-Local |
|
PLAY [Create VM on RHV] *********************
TASK [Login to oVirt] ********************* ok: [localhost]
TASK [Debug ovirt auth result] ****************** ok: [localhost] => { "msg": { "ca_file": "/etc/pki/ovirt-engine/ca.pem", "compress": true, "headers": null, "insecure": true, "kerberos": false, "timeout": 0, "token": "Vae2y_gZuKMZhxweXoJdcA4bALKE5UeZmSqc7SCW--EC-4MCt1B6HdKFsj87SfNXnNfcX8UefNdqxdi2KVvmWw", "url": "https://172.16.11.65/ovirt-engine/api/" } }
TASK [Provisioning VM from template] **************** An exception occurred during task execution. To see the full traceback, use -vvv. The error was: NotFoundError: HTTP response code is 404. fatal: [localhost]: FAILED! => {"changed": false, "msg": "HTTP response code is 404."} ...ignoring
PLAY RECAP ************************ localhost : ok=3 changed=0 unreachable=0 failed=0 skipped=0 rescued=0 ignored=1 |
To unsubscribe from this group and stop receiving emails from it, send an email to ansible...@googlegroups.com.