Hi Matthew, Could you please share with us your playbook? Which ansible version are you using? Are you using ovirt_vm module from oVirt Ansible Collection which contains newer versions than the ovirt_vm module included in Ansible 2.9?
https://docs.ansible.com/ansible/latest/collections/ovirt/ovirt/ovirt_vm_module.html Thanks, Martin On Thu, Apr 22, 2021 at 9:28 AM [email protected] < [email protected]> wrote: > The ‘nics’ section of ovirt_vm is vague and with nearly no examples. > > > > My playbook is based upon > https://blogs.oracle.com/scoter/ansible-with-oracle-linux-virtualization-manager-olvm > > > > I’ve made several modifications, (more default) and added a few lines, > which I believe is supposed to assign vnic profiles to the primary vnic > (nic1), based upon the definition of ‘vm_nic1_profile’ defined in an > included ‘ini’ file. (the profile defaulting to blank if it is not defined > in the ini file.) > > > > It isn’t doing its job. > > > > nics: > > - name: “nic1” > > profile_name: "{{ hostvars[item]['vm_nic1_profile'] | default('') }}” > > > > > > The playbook runs without complaint. If I run it with option ‘-vvv’ part > of the output lists the variables, but the ‘nics’ variable is an empty list > (nics[]) > > > > Any hints on what I’m doing wrong? I’ve checked the forum, but it tends > to strip leading spaces, which is bad for indent sensitive code. > _______________________________________________ > Users mailing list -- [email protected] > To unsubscribe send an email to [email protected] > Privacy Statement: https://www.ovirt.org/privacy-policy.html > oVirt Code of Conduct: > https://www.ovirt.org/community/about/community-guidelines/ > List Archives: > https://lists.ovirt.org/archives/list/[email protected]/message/MEZLXGSSRCRJRSMME7J3Y5XQ2AGYUWI4/ > -- Martin Perina Manager, Software Engineering Red Hat Czech s.r.o.
_______________________________________________ Users mailing list -- [email protected] To unsubscribe send an email to [email protected] Privacy Statement: https://www.ovirt.org/privacy-policy.html oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/ List Archives: https://lists.ovirt.org/archives/list/[email protected]/message/QMSHJMWEBMBHKTBL4GQJYBFOZXILSVUB/

