]> git.phdru.name Git - ansible.git/blob - playbooks/monthly-truncate-logs.yml
Feat: Truncate Linux logs monthly
[ansible.git] / playbooks / monthly-truncate-logs.yml
1 - name: Truncate Linux logs monthly
2   hosts: "{{ hosts | default('all') }}"
3   gather_facts: false
4   tasks:
5     - name: Truncate mail logs
6       copy: dst="{{ item }}" content='' force=yes
7       loop: ['mail/procmail.log', 'mail/sent-mail']