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

Ansible Galaxy role to setup logrotate and additional rotation scripts

Results 10 ansible-logrotate issues
Sort by recently updated
recently updated
newest added

Install logrotate task requires root. However, it is not given that the user we use to connect to the target machine will be root. Using `become: true` on the task...

This commit makes it possible to have multiple actions in a script, eg. like this: "/var/log/php-application/*.log" { daily rotate 0 create ifempty su apache apache lastaction /usr/bin/find -type f -mtime...

test-needed

This change is to address the feature request in issue #5.

Python2 goes end-of-life January 2020. Distro vendors have been scrambling to upgrade to Python3 and this appears to include the recent Ansible 2.8.0 release. A previously-functioning project using ansible-logrotate now...

This change adds [molecule](https://molecule.readthedocs.io) tests and removed the Vagrant based tests. It also updates `.travis.ym` to run the new tests. To run the tests, [install molecule](https://molecule.readthedocs.io/en/latest/installation.html) (in a virtualenv works...

Some people run on weird systems without apt (like Gentoo), but still want to use configuration management tools. I can come up with PR that allows to skip logrotate installation....

pr-needed

I use the following config: ``` logrotate_scripts: - name: node path: "/var/log/forever/*.log" options: - daily - dateext - missingok - rotate 30 - compress - delaycompress - notifempty - copytruncate...

This role allows hourly rotates to be configured but the setup does not actually support them because the logrotate cron is only ran daily. To support the hourly logging feature,...

Create logrotate.d files and set global options.

I am trying to use this role to set the log owner and permissions, but I am using copytruncate, so I can't use the create directive. Is there a way...