Add affinity group vm ovirt_vm

9 views
Skip to first unread message

Pietro Pesce (Mistak3)

unread,
Mar 28, 2023, 7:08:48 AM3/28/23
to Ansible Project
Hello

i want create a task to add vm on existing affinity group. How can do?

Thanks
Regards

Atul Nasir

unread,
Aug 25, 2023, 1:07:45 AM8/25/23
to Ansible Project
---
- name: Add VM to Affinity Group in oVirt
  hosts: localhost
  gather_facts: no
  tasks:
    - name: Add VM to Affinity Group
      ovirt_vm:
        auth: "{{ ovirt_auth }}"
        name: "your_vm_name"  # Replace with the name of your VM
        affinity_group_name: "your_affinity_group_name"  # Replace with the name of your affinity group
        state: present
      delegate_to: localhost
Reply all
Reply to author
Forward
0 new messages