Feature 1/path testing #2
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
todo 🗒️
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: stationgroup/ansible-logrotate-plusplus#2
Loading…
Reference in a new issue
No description provided.
Delete branch "feature-1/path-testing"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Ansible role which installs and configures logrotate, based of https://github.com/arillso/ansible.logrotate 1.5.2
An additional patch allows a logrotate role to test if paths exist before writing a logrotate config to the server.
Load the roles default vars with custom paths and per path parameters, and run the playbook across a dynamic
infrastructure and only write logrotate rules to the appropriate system with the correct paths present.
Tested with following playbook
and command: