Skip to content

Commit a50bbc9

Browse files
committed
Ansible syntax bool warnings
1 parent f59c67e commit a50bbc9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tasks/main.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@
131131
when: "pve_cluster_enabled | bool"
132132

133133
- import_tasks: ceph.yml
134-
when: pve_ceph_enabled
134+
when: "pve_ceph_enabled | bool"
135135

136136
- name: Configure Proxmox groups
137137
proxmox_group:
@@ -194,7 +194,7 @@
194194
path: "/etc/pve/datacenter.cfg"
195195
state: "touch"
196196
when:
197-
- not pve_cluster_enabled or (pve_cluster_enabled and inventory_hostname == groups[pve_group][0])
197+
- not pve_cluster_enabled | bool or (pve_cluster_enabled and inventory_hostname == groups[pve_group][0])
198198
- pve_datacenter_cfg | length > 0
199199
- not _datacenter_cfg.stat.exists
200200

@@ -209,7 +209,7 @@
209209
{{ k }}: {{ v }}
210210
{% endfor %}
211211
when:
212-
- not pve_cluster_enabled or (pve_cluster_enabled and inventory_hostname == groups[pve_group][0])
212+
- not pve_cluster_enabled | bool or (pve_cluster_enabled and inventory_hostname == groups[pve_group][0])
213213
- pve_datacenter_cfg | length > 0
214214

215215
- import_tasks: ssl_config.yml

0 commit comments

Comments
 (0)