oVirt / ovirt-ansible-collection

Ansible collection with official oVirt modules and roles
72 stars 91 forks source link

ovirt_disk module fails with name 'client' is not defined on remote host #675

Open agschwind opened 1 year ago

agschwind commented 1 year ago
SUMMARY

When running ovirt_disk module on remote host by delegation it fails with the following message: msg: name 'client' is not defined

COMPONENT NAME

ovirt_disk collection ovirt.ovirt 3.0.0

STEPS TO REPRODUCE
- name: 'Copy ISO to REVM'
  ovirt.ovirt.ovirt_disk:
    auth: '{{ ovirt_auth }}'          # noqa: args[module]
    name: 'file.iso'
    upload_image_path: '/media/remaster/file.iso'
    storage_domain: 'My_Storage_Domain'
    content_type: 'iso'
    format: 'raw'
    timeout: 300
    wait: true
  delegate_to: 'remote.host.com'

##### EXPECTED RESULTS
ok: [localhost -> remote.host.com]

##### ACTUAL RESULTS

fatal: [localhost -> remote.host.com]: FAILED! => changed=false 
  msg: name 'client' is not defined

Thanks

mnecas commented 1 year ago

Does the remote server have ovirt imageio?