An Ansible role for configuring logrotate.
Supported operating systems:
- Debian 10 (Buster)
- Debian 11 (Bullseye)
The following table lists all variables that can be overridden and their default values.
Name | Default Value | Description |
---|---|---|
logrotate_package |
logrotate | Name of the logrotate package. Use name=ver format to pin. |
logrotate_package_state |
present | Installation state for the logrotate package. |
- hosts: all
roles:
- stonesoupkitchen.logrotate
A Makefile is included for easier development with pipenv
.
After cloning this repository,
use the following commands to set up an environment.
pipenv install --dev
To lint your changes with ansible-lint:
make lint
To run tests with molecule:
make test
See LICENSE.