--- # Log Rotation Configuration for Nginx - name: Configure nginx log rotation template: src: nginx-logrotate.j2 dest: /etc/logrotate.d/nginx owner: root group: root mode: '0644' tags: - nginx - logging