We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5aadf6b + df7c396 commit c678974Copy full SHA for c678974
tasks/main.yml
@@ -14,6 +14,15 @@
14
with_items: "{{ groups[pve_group] }}"
15
when: "pve_cluster_enabled | bool"
16
17
+- name: Ensure that group has more than one host to enable PVE clustering
18
+ assert:
19
+ that:
20
+ - "groups[pve_group] | length | int < 2"
21
+ msg: "Clustering is enabled for {{ pve_group }} but does not meet the \
22
+ minimum host requirement of 2. Please either remove/disable \
23
+ pve_cluster_enabled, or update your inventory as needed."
24
+ when: "pve_cluster_enabled | bool"
25
+
26
- name: Ensure this host is in the group specified
27
assert:
28
that:
0 commit comments