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