fix: when condition for motd cleanup
This commit is contained in:
parent
24ec59e4c0
commit
73690dbf11
1 changed files with 3 additions and 1 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue