I would like to upload iso to ovirt, but I'm getting error:
OSError: [Errno 2] No such file or directory: '/rear/olrearc'
fatal: [olvman]: FAILED! => {
How that ansible can't find iso image? If I change upload_image_path:/rear/olrearc/rear-olrearc.iso I'm getting the same error.
[ansible@nfs olvm]$ ll /rear/olrearc/rear-olrearc.iso
-rw-rw-rw-. 1 root root 331063296 Mar 22 14:54 /rear/olrearc/rear-olrearc.iso
---
- hosts: om
gather_facts: no
vars_files:
- password.yml
tasks:
- name: Login to OM manager
ovirt_auth:
hostname: "{{ om_fqdn }}"
username: "{{ om_user }}"
password: "{{ om_password }}"
ca_file: "{{ om_cafile | default(omit) }}"
insecure: "{{ om_insecure | default(true) }}"
tags:
- always
- ovirt_disk:
auth: "{{ ovirt_auth }}"
name: rear-olrearc.iso
upload_image_path: /rear/olrearc
storage_domain: os-domain-1
wait: true
bootable: true
format: raw
content_type: iso