Skip to content

Commit 3cb99db

Browse files
committed
nfsd: fix Ansible conditional for fsprogs package
Fix Ansible conditional that was checking a string variable as a boolean. Modern Ansible requires explicit boolean checks, so change: - fsprogs to: - fsprogs < /dev/null | length > 0 This resolves the error: "Conditional result was 'btrfs-progs' of type 'str', which evaluates to True. Conditionals must have a boolean result." Generated-by: Claude AI Signed-off-by: Daniel Gomez <da.gomez@samsung.com>
1 parent 001d31c commit 3cb99db

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • playbooks/roles/nfsd/tasks/install-deps/debian

playbooks/roles/nfsd/tasks/install-deps/debian/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
nfsd_packages: "{{ nfsd_packages + [fsprogs] }}"
2020
when:
2121
- fsprogs is defined
22-
- fsprogs
22+
- fsprogs | length > 0
2323

2424
- name: Add gssproxy to the nfsd packages list
2525
set_fact:

0 commit comments

Comments
 (0)