Skip to content

Commit

Permalink
Updated cron configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
pjan committed Mar 16, 2014
1 parent d411b0d commit ba19c6e
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ logwatch_detail: "low" # The level of detail in the Logwatch report
logwatch_range: "yesterday" # The default time range for the Logwatch report
logwatch_output: "stdout" # The output method of the Logwatch report
logwatch_format: "text" # The format of the Logwatch report
logwatch_cron_time: "daily" # Cron special time specification nickname - must match with logwatch range!
```
Expand Down
1 change: 1 addition & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ logwatch_detail: "low" # The level of detail in the Logwatch report
logwatch_range: "yesterday" # The default time range for the Logwatch report
logwatch_output: "stdout" # The output method of the Logwatch report
logwatch_format: "text" # The format of the Logwatch report
logwatch_cron_time: "daily" # Cron special time specification nickname - must match with logwatch range!
1 change: 1 addition & 0 deletions meta/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,4 @@ galaxy_info:

dependencies:
- Ansibles.perl
- Ansibles.cron
11 changes: 11 additions & 0 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,14 @@
owner: root
group: root
mode: 0644

- name: Logwatch | Remove logwatch's cronjob
file:
path: /etc/cron.daily/00logwatch
state: absent

- name: Logwatch | Configure logwatch's cronjob
cron:
name: logwatch
job: /usr/sbin/logwatch
special_time: "{{logwatch_cron_time}}"

0 comments on commit ba19c6e

Please sign in to comment.