--- - name: access_log | Install a logrotate entry for the access log file ansible.builtin.template: src: tomcat_access.logrotate.j2 dest: /etc/logrotate.d/tomcat_access owner: root group: root mode: '0644' when: tomcat_access_log_enabled tags: tomcat