arillso.system.logrotate role – Cross-platform log rotation management
Note
This role is part of the arillso.system collection (version 0.0.34).
It is not included in ansible-core
.
To check whether it is installed, run ansible-galaxy collection list
.
To install it use: ansible-galaxy collection install arillso.system
.
To use it in a playbook, specify: arillso.system.logrotate
.
Entry point main
– Cross-platform log rotation management
Synopsis
This role manages log rotation on both Linux and Windows systems.
It configures log rotation frequency, retention, compression, and ownership.
Parameters
Parameter |
Comments |
---|---|
Determines whether rotated logs should be compressed. Choices:
|
|
Determines whether to append a date extension to the rotated log files. Choices:
|
|
A list to define specific log rotation configurations. |
|
Defines how often logs should be rotated. Options are ‘daily’, ‘weekly’, or ‘monthly’. Default: |
|
Defines the group that will own the rotated log files, loaded from OS-specific variables or set manually. |
|
Specifies the number of rotated log files to keep. Default: |
|
Defines the user who will own the rotated log files, loaded from OS-specific variables or set manually. |