Go to file
Robert Kaussow c9df14249e
Some checks failed
ci/woodpecker/push/lint Pipeline was successful
ci/woodpecker/push/test Pipeline failed
ci/woodpecker/push/docs unknown status
ci/woodpecker/push/notify Pipeline was successful
ci: fix deprecated settings
2024-08-18 13:43:49 +02:00
.woodpecker ci: fix deprecated settings 2024-08-18 13:43:49 +02:00
defaults chore: add options logrotate_app_config and logrotate_app_config_extra 2021-05-25 23:28:54 +02:00
meta ci: migrate to woodpecker 2024-02-18 20:19:33 +01:00
molecule ci: fix deprecated settings 2024-08-18 13:43:49 +02:00
tasks ci: migrate to woodpecker 2024-02-18 20:19:33 +01:00
templates/etc chore: fix jinja syntax 2021-05-25 23:32:55 +02:00
.gitignore ci: migrate to woodpecker 2024-02-18 20:19:33 +01:00
.later.yml ci: migrate to woodpecker 2024-02-18 20:19:33 +01:00
.markdownlint.yml ci: migrate to woodpecker 2024-02-18 20:19:33 +01:00
.prettierignore ci: migrate to woodpecker 2024-02-18 20:19:33 +01:00
LICENSE chore: end of the year maintenance [skip ci] 2021-12-21 10:45:22 +01:00
pyproject.toml ci: migrate to woodpecker 2024-02-18 20:19:33 +01:00
README.md [skip ci] automated docs update 2024-02-18 19:24:55 +00:00

xoxys.logrotate

Build Status License: MIT

Setup logrotate.

Table of content


Requirements

  • Minimum Ansible version: 2.10

Default Variables

logrotate_app_config

Default value

logrotate_app_config: []

logrotate_app_config_extra

Default value

logrotate_app_config_extra: []

logrotate_config

Default value

logrotate_config:
  - name: syslog
    definitions:
      - logs:
          - /var/log/cron
          - /var/log/maillog
          - /var/log/messages
          - /var/log/secure
          - /var/log/spooler
        options:
          - missingok
          - sharedscripts
        postrotate:
          - /usr/bin/systemctl kill -s HUP rsyslog.service >/dev/null 2>&1 || true
  - name: chrony
    definitions:
      - logs:
          - /var/log/chrony/*.log
        options:
          - missingok
          - nocreate
          - sharedscripts
        postrotate:
          - /usr/bin/chronyc cyclelogs > /dev/null 2>&1 || true
  - name: wtmp
    definitions:
      - logs:
          - /var/log/wtmp
        options:
          - missingok
          - monthly
          - create 0664 root utmp
          - minsize 1M
          - rotate 1
  - name: btmp
    definitions:
      - logs:
          - /var/log/btmp
        options:
          - missingok
          - monthly
          - create 0600 root utmp
          - rotate 1

logrotate_include_dir

Default value

logrotate_include_dir: /etc/logrotate.d

logrotate_options

Default value

logrotate_options:
  - weekly
  - rotate 4
  - create
  - dateext

logrotate_package

Default value

logrotate_package: logrotate

Dependencies

None.

License

MIT

Author

Robert Kaussow