ansible-role-logrotate
ansible-role-logrotate copied to clipboard
Allow specifying multiple paths and postrotate commands for a logrotate entry
Proposed feature
It should be possible to specify a list for the path
and postrotate
variable in a logrotate entry, instead of just a single string.
Rationale
It is perfectly fine in logrotate to give multiple postrotate
commands and paths
to files that should be rotated, especially when one wants to simply apply the same ruleset on multiple paths.
Since it is currently only possible to specify a single path in a logrotate entry, you would need to duplicate the same entry over and over where just the logfile changes to achieve this same behaviour, which seems unnecessary.