Skip to content

Commit

Permalink
fix for host count check
Browse files Browse the repository at this point in the history
and some format cleanup
  • Loading branch information
edv-pi authored and lae committed Jul 7, 2024
1 parent a01efb4 commit d4b7309
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion meta/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ galaxy_info:
description: Installs and configures Proxmox Virtual Environment 6.x/7.x on Debian servers.
license: MIT

min_ansible_version: 2.9
min_ansible_version: "2.9"

platforms:
- name: Debian
Expand Down
4 changes: 2 additions & 2 deletions tasks/ceph.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
- block:
- name: Create initial Ceph config
command: "pveceph init --network {{ pve_ceph_network }} \
{% if pve_ceph_cluster_network is defined %} \
{% if pve_ceph_cluster_network is defined %} \
--cluster-network {{ pve_ceph_cluster_network }}
{% endif %}"
{% endif %}"
args:
creates: /etc/ceph/ceph.conf

Expand Down
2 changes: 1 addition & 1 deletion tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
- name: Ensure that group has more than one host to enable PVE clustering
assert:
that:
- "groups[pve_group] | length | int < 2"
- "groups[pve_group] | length | int >= 2"
msg: "Clustering is enabled for {{ pve_group }} but does not meet the \
minimum host requirement of 2. Please either remove/disable \
pve_cluster_enabled, or update your inventory as needed."
Expand Down

0 comments on commit d4b7309

Please sign in to comment.