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.
1 parent 569a203 commit cfab676Copy full SHA for cfab676
tasks/main.yml
@@ -14,6 +14,15 @@
14
with_items: "{{ groups[pve_group] }}"
15
when: "pve_cluster_enabled | bool"
16
17
+- name: Count host in {{ pve_group }}
18
+ set_fact:
19
+ pve_cluster_host_count: "{{ groups[pve_group] | length }}"
20
+
21
+- name: Ensure that group has more than one host to enable pve_cluster
22
23
+ pve_cluster_enabled: false
24
+ when: "pve_cluster_host_count | int <= 1"
25
26
- name: Ensure this host is in the group specified
27
assert:
28
that:
0 commit comments