{"id":18555169,"url":"https://github.com/arillso/ansible.logrotate","last_synced_at":"2025-04-09T23:31:59.735Z","repository":{"id":26478096,"uuid":"105946365","full_name":"arillso/ansible.logrotate","owner":"arillso","description":"Installs and configures logrotate","archived":false,"fork":false,"pushed_at":"2023-08-17T18:32:10.000Z","size":81,"stargazers_count":32,"open_issues_count":11,"forks_count":46,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-03-24T13:44:01.735Z","etag":null,"topics":["ansible","ansible-role","hacktoberfest","logratate"],"latest_commit_sha":null,"homepage":"","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/arillso.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-10-05T22:23:43.000Z","updated_at":"2024-12-06T07:35:02.000Z","dependencies_parsed_at":"2024-11-06T21:32:15.765Z","dependency_job_id":"23e50990-a77b-47dc-8a02-8d7ce2e4b408","html_url":"https://github.com/arillso/ansible.logrotate","commit_stats":null,"previous_names":[],"tags_count":15,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arillso%2Fansible.logrotate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arillso%2Fansible.logrotate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arillso%2Fansible.logrotate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arillso%2Fansible.logrotate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/arillso","download_url":"https://codeload.github.com/arillso/ansible.logrotate/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248129891,"owners_count":21052655,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ansible","ansible-role","hacktoberfest","logratate"],"created_at":"2024-11-06T21:25:30.494Z","updated_at":"2025-04-09T23:31:58.017Z","avatar_url":"https://github.com/arillso.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Ansible Role: logrotate\n\n[![Build Status](https://img.shields.io/travis/arillso/ansible.logrotate.svg?branch=master\u0026style=popout-square)](https://travis-ci.org/arillso/ansible.logrotate) [![license](https://img.shields.io/github/license/mashape/apistatus.svg?style=popout-square)](https://sbaerlo.ch/licence) [![Ansible Galaxy](https://img.shields.io/badge/ansible--galaxy-logrotate-blue.svg?style=popout-square)](https://galaxy.ansible.com/arillso/logrotate) [![Ansible Role](https://img.shields.io/ansible/role/d/23110.svg?style=popout-square)](https://galaxy.ansible.com/arillso/logrotate)\n\n## Description\n\nInstalls and configures logrotate.\n\n## Installation\n\n```bash\n  ansible-galaxy install arillso.logrotate\n```\n\n## Requirements\n\nNone.\n\n## Role Variables\n\n### include files\n\nPath to the include files.\n\n```yml\nlogrotate_include_dir: /etc/logrotate.d\n```\n\n### logrotate_global_config\n\nEnable/disable global configuration of `/etc/logrotate.conf`.\n\n```yml\nlogrotate_global_config: true\n```\n\n### logrotate_use_hourly_rotation\n\nEnable/disable hourly rotation with cron.\n\n```yml\nlogrotate_use_hourly_rotation: false\n```\n\n### logrotate options\n\nList of global options.\n\n```yml\nlogrotate_options:\n  - weekly\n  - rotate 4\n  - create\n  - dateext\n  - su root syslog\n```\n\n### Package\n\nPackage name to install `logrotate`.\n\n```yml\nlogrotate_package: logrotate\n```\n\n### default config\n\nLogrotate for `wtmp`:\n\n```yml\nlogrotate_wtmp_enable: true\nlogrotate_wtmp:\n  logs:\n    - /var/log/wtmp\n  options:\n    - missingok\n    - monthly\n    - create 0664 root utmp\n    - rotate 1\n```\n\nLogrotate for `btmp`:\n\n```yml\nlogrotate_btmp_enable: true\nlogrotate_btmp:\n  logs:\n    - /var/log/btmp\n  options:\n    - missingok\n    - monthly\n    - create 0660 root utmp\n    - rotate 1\n```\n\n### Applications config\n\nMore log files can be added that will logorate.\n\n```yml\nlogrotate_applications: []\n```\n\n#### Example\n\nThe following options are available.\n\n```yml\nlogrotate_applications:\n  - name: name-your-log-rotate-application\n    definitions:\n      - logs:\n          - /var/log/apt/term.log\n          - /var/log/apt/history.log\n        options:\n          - su user group\n          - rotate 12\n          - monthly\n          - missingok\n          - notifempty\n        postrotate:\n          - /path/to/some/script\n```\n\n## Dependencies\n\nNone\n\n## Example Playbook\n\n```yml\n- hosts: all\n  roles:\n    - arillso.logrotate\n```\n\n## Author\n\n- [Simon Bärlocher](https://sbaerlocher.ch)\n\n## License\n\nThis project is under the MIT License. See the [LICENSE](https://sbaerlo.ch/licence) file for the full license text.\n\n## Copyright\n\n(c) 2019, Arillso\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farillso%2Fansible.logrotate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farillso%2Fansible.logrotate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farillso%2Fansible.logrotate/lists"}