Skip to content

Commit

Permalink
Modyfing openvpn logrotate configurtion to keep logs for a year
Browse files Browse the repository at this point in the history
  • Loading branch information
falcocer-ibm committed Jan 31, 2025
1 parent 54fca6a commit 5ed1d07
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions roles/gateway/tasks/logging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@
- name: Set log dir SELinux context
command: restorecon -R /var/log/openvpn

- name: Write logrotate conf file
- name: Write logrotate weekly conf file
copy:
src: files/openvpn.logrotate-weekly
dest: /etc/logrotate.d/openvpn-weekly
notify: restart rsyslog

- name: Write logrotate conf file
- name: Write logrotate daily conf file
copy:
src: files/openvpn.logrotate-daily
dest: /etc/logrotate.d/openvpn-daily
Expand Down

0 comments on commit 5ed1d07

Please sign in to comment.