From 31eb1a14120b7a1c3cba9d2cd8d5346de94235e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Ne=C4=8Das?= Date: Thu, 19 Dec 2019 09:28:43 +0100 Subject: [PATCH] ovirt_affinity_group: add host rule option disabled (#65704) --- lib/ansible/modules/cloud/ovirt/ovirt_affinity_group.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/ansible/modules/cloud/ovirt/ovirt_affinity_group.py b/lib/ansible/modules/cloud/ovirt/ovirt_affinity_group.py index 5cf3fac379..0711c2e24b 100644 --- a/lib/ansible/modules/cloud/ovirt/ovirt_affinity_group.py +++ b/lib/ansible/modules/cloud/ovirt/ovirt_affinity_group.py @@ -43,8 +43,9 @@ options: description: - If I(positive) I(all) VMs in this group should run on the this host. - If I(negative) I(no) VMs in this group should run on the this host. + - If I(disabled) this affinity group doesn't take effect. - This parameter is support since oVirt/RHV 4.1 version. - choices: [ negative, positive ] + choices: [ disabled, negative, positive ] vm_enforcing: description: - If I(yes) VM cannot start if it does not satisfy the C(vm_rule). @@ -256,7 +257,7 @@ def main(): vm_enforcing=dict(type='bool'), vm_rule=dict(type='str', choices=['disabled', 'negative', 'positive']), host_enforcing=dict(type='bool'), - host_rule=dict(type='str', choices=['negative', 'positive']), + host_rule=dict(type='str', choices=['disabled', 'negative', 'positive']), vms=dict(type='list'), hosts=dict(type='list'), )