forked from evolix/ansible-roles
openvpn: configure logrotate
This commit is contained in:
parent
07c3c0226f
commit
68ac8fc058
|
@ -13,6 +13,7 @@ The **patch** part changes is incremented if multiple releases happen the same m
|
||||||
### Added
|
### Added
|
||||||
|
|
||||||
* haproxy: add haproxy_allow_ip_nonlocal_bind to set sysctl value (optional)
|
* haproxy: add haproxy_allow_ip_nonlocal_bind to set sysctl value (optional)
|
||||||
|
* openvpn: configure logrotate
|
||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
|
|
||||||
|
|
10
openvpn/files/logrotate_openvpn
Normal file
10
openvpn/files/logrotate_openvpn
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
/var/log/openvpn.log
|
||||||
|
{
|
||||||
|
weekly
|
||||||
|
rotate 52
|
||||||
|
missingok
|
||||||
|
notifempty
|
||||||
|
delaycompress
|
||||||
|
compress
|
||||||
|
copytruncate
|
||||||
|
}
|
|
@ -149,6 +149,12 @@
|
||||||
value: "1"
|
value: "1"
|
||||||
sysctl_file: "/etc/sysctl.d/openvpn.conf"
|
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
|
- name: Generate a password for the management interface
|
||||||
set_fact:
|
set_fact:
|
||||||
management_pwd: "{{ lookup('password', '/dev/null length=15 chars=ascii_letters,digits') }}"
|
management_pwd: "{{ lookup('password', '/dev/null length=15 chars=ascii_letters,digits') }}"
|
||||||
|
|
Loading…
Reference in a new issue