Skip to content

Commit

Permalink
Merge pull request kubernetes-sigs#1368 from hugoprudente/fix/381
Browse files Browse the repository at this point in the history
Delete all rotated logs
  • Loading branch information
k8s-ci-robot authored Jan 3, 2024
2 parents fc3269e + e8b34f9 commit 5dfa62b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions images/capi/ansible/roles/sysprep/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -198,10 +198,10 @@
find /var/log -type f -iname '*.log' | xargs truncate -s 0
when: ansible_os_family != "Flatcar"

- name: Delete all logrotated log zips
- name: Delete all logrotated logs
shell:
cmd: |
find /var/log -type f -name '*.gz' -exec rm {} +
find /var/log -type f -regex '.*[0-9z]$' -exec rm {} +
when: ansible_os_family != "Flatcar"

- name: Remove swapfile
Expand Down

0 comments on commit 5dfa62b

Please sign in to comment.