fix: when condition for motd cleanup

This commit is contained in:
Simon Cornet 2025-10-25 14:48:07 +02:00
commit 73690dbf11

View file

@ -20,7 +20,9 @@
path: "{{ item.path }}"
state: "absent"
loop: "{{ old_motd.files }}"
when: "old_motd.files|length > 0"
when:
- "old_motd.files|length > 0"
- "ansible_os_family == 'Debian'"
# remove old motd files
- name: "motd - cleanup main file"