Skip to content

Commit

Permalink
Rotate system logs on Red Hat
Browse files Browse the repository at this point in the history
Refs #73
  • Loading branch information
bviktor committed Mar 4, 2023
1 parent 9216cfc commit f97d4a2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions roles/install/tasks/firewalld.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@
name: rsyslog
state: latest

- name: Install log rotation for system logs
package:
name: rsyslog-logrotate
state: latest
when: ansible_os_family == 'RedHat'

- name: Enable rsyslog
systemd:
name: rsyslog.service
Expand Down

0 comments on commit f97d4a2

Please sign in to comment.