From ea4357e81925c92c7c35f5f869db4f1c87058cc7 Mon Sep 17 00:00:00 2001 From: Bruno Travouillon Date: Fri, 18 Oct 2024 13:36:33 -0400 Subject: [PATCH] fix: Set default value for proxmox_ha_resources Avoid failure when the role is used in a playbook in which two PVE clusters are configured, one with HA and the other without HA. --- roles/ha/defaults/main.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/roles/ha/defaults/main.yml b/roles/ha/defaults/main.yml index 44db189..41ad94c 100644 --- a/roles/ha/defaults/main.yml +++ b/roles/ha/defaults/main.yml @@ -5,3 +5,15 @@ # certs. Make this a default for use with other modules like # `ansible.builtin.uri` (used for API calls) proxmox_api_validate_certs: false + +# Assign members to HA groups +# proxmox_ha_resources: +# - group: "HA_all" +# members: +# - "vm:110" +# - "vm:108" +# - group: "HA_vn-b" +# members: +# - "ct:200" +# - "ct:202" +proxmox_ha_resources: []