Skip to content

Commit d4b7309

Browse files
edv-pilae
authored andcommitted
fix for host count check
and some format cleanup
1 parent a01efb4 commit d4b7309

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

meta/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ galaxy_info:
66
description: Installs and configures Proxmox Virtual Environment 6.x/7.x on Debian servers.
77
license: MIT
88

9-
min_ansible_version: 2.9
9+
min_ansible_version: "2.9"
1010

1111
platforms:
1212
- name: Debian

tasks/ceph.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
- block:
55
- name: Create initial Ceph config
66
command: "pveceph init --network {{ pve_ceph_network }} \
7-
{% if pve_ceph_cluster_network is defined %} \
7+
{% if pve_ceph_cluster_network is defined %} \
88
--cluster-network {{ pve_ceph_cluster_network }}
9-
{% endif %}"
9+
{% endif %}"
1010
args:
1111
creates: /etc/ceph/ceph.conf
1212

tasks/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
- name: Ensure that group has more than one host to enable PVE clustering
1818
assert:
1919
that:
20-
- "groups[pve_group] | length | int < 2"
20+
- "groups[pve_group] | length | int >= 2"
2121
msg: "Clustering is enabled for {{ pve_group }} but does not meet the \
2222
minimum host requirement of 2. Please either remove/disable \
2323
pve_cluster_enabled, or update your inventory as needed."

0 commit comments

Comments
 (0)