How axione/ansible-system_logrotate works
Project type and purpose
• This is an Ansible “role” named ansible-system_logrotate.
• Purpose: configure and deploy logrotate policies on target systems via Ansible.
File structure
• Top-level files: metadata (LICENSE, README, .gitlab-ci.yml), linting configs, and CHANGELOG.
• defaults/ → default role variables (main.yml)
• tasks/ → main.yml plus sub-playbooks (install.yml, check.yml)
• templates/ → Jinja2 templates for logrotate.conf and logrotate.d snippets
• meta/ → Galaxy metadata
• molecule/ → automated integration tests (with Docker, playbooks, test scripts)
README for additional insights
• No external dependencies other than Ansible.
• Describes basic usage: include this role in a playbook for hosts that require logrotate configuration.
Detail
• Every directory-level artifact that contributes to run-time (defaults/main.yml, each task file, each template).
• That molecule is not part of production but is critical for CI testing.
• Variable precedence: defaults → extra_vars → inventory_vars if needed.