Skip to content

Commit

Permalink
Feature/skip global config
Browse files Browse the repository at this point in the history
  • Loading branch information
Juri Zirnsak authored and hadret committed Sep 24, 2020
1 parent ae663fb commit 3dc2bbe
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,14 @@ Path to the imclude files.
logrotate_include_dir: /etc/logrotate.d
```
### logrotate_global_config
Enable/disable global configuration of `/etc/logrotate.conf`.

```yml
logrotate_global_config: true
```

### logrotate_use_hourly_rotation

Enable hourly rotation with cron.
Expand Down
3 changes: 3 additions & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ logrotate_include_dir: /etc/logrotate.d
# package name to install logrotate.
logrotate_package: logrotate

# Enable global configuration handling
logrotate_global_config: true

# Enable hourly rotation with cron.
logrotate_use_hourly_rotation: false

Expand Down
1 change: 1 addition & 0 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
mode: 0644
tags:
- configuration
when: logrotate_global_config | bool

- name: create logrotate application configuration files
become: true
Expand Down

0 comments on commit 3dc2bbe

Please sign in to comment.