Commit 73690dbf authored by Simon Cornet's avatar Simon Cornet
Browse files

fix: when condition for motd cleanup

parent 24ec59e4
Loading
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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"