Skip to content
This repository has been archived by the owner on Jun 30, 2023. It is now read-only.

StoneSoupKitchen/ansible-role-logrotate

Repository files navigation

CI

Ansible role: logrotate

An Ansible role for configuring logrotate.

Requirements

Supported operating systems:

  • Debian 10 (Buster)
  • Debian 11 (Bullseye)

Role Variables

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.

Examples

- hosts: all
  roles:
    - stonesoupkitchen.logrotate

Development

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

License

See LICENSE.