- name: Truncate Linux logs monthly hosts: "{{ hosts | default('all') }}" gather_facts: false tasks: - name: Truncate mail logs copy: content: '' dest: "{{ item }}" loop: ['mail/procmail.log', 'mail/sent-mail']