openvpn: configure logrotate
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Jérémy Dubois 2022-06-30 10:11:12 +02:00
parent 07c3c0226f
commit 68ac8fc058
3 changed files with 17 additions and 0 deletions

View File

@ -13,6 +13,7 @@ The **patch** part changes is incremented if multiple releases happen the same m
### Added
* haproxy: add haproxy_allow_ip_nonlocal_bind to set sysctl value (optional)
* openvpn: configure logrotate
### Changed

View File

@ -0,0 +1,10 @@
/var/log/openvpn.log
{
weekly
rotate 52
missingok
notifempty
delaycompress
compress
copytruncate
}

View File

@ -149,6 +149,12 @@
value: "1"
sysctl_file: "/etc/sysctl.d/openvpn.conf"
- name: Configure logrotate for OpenVPN
copy:
src: logrotate_openvpn
dest: /etc/logrotate.d/openvpn
force: no
- name: Generate a password for the management interface
set_fact:
management_pwd: "{{ lookup('password', '/dev/null length=15 chars=ascii_letters,digits') }}"