ansible-role-logrotate icon indicating copy to clipboard operation
ansible-role-logrotate copied to clipboard

Allow specifying multiple paths and postrotate commands for a logrotate entry

Open tazend opened this issue 1 year ago • 0 comments

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.

tazend avatar Jun 27 '23 07:06 tazend