-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
nomis reporting: log cleanup improvement (#1177)
* allow different sap_bip_rar_base per environment * remove archive log tasks * add separate step for setting up archived logs * -
- Loading branch information
1 parent
8936a57
commit 9ea7590
Showing
4 changed files
with
24 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
--- | ||
- name: Create archived log directory | ||
ansible.builtin.file: | ||
path: "{{ item }}" | ||
state: directory | ||
mode: 0775 | ||
owner: bobj | ||
group: binstall | ||
with_items: | ||
- "{{ sap_bip_archived_logs_directory }}" | ||
|
||
- name: Setup archived log cleanup cron | ||
ansible.builtin.cron: | ||
name: "log_cleanup" | ||
minute: "0" | ||
hour: "3" | ||
weekday: "MON,WED,FRI" | ||
job: "find {{ sap_bip_archived_logs_directory }} -mtime +365 -prune -exec rm -rf {} \\;" | ||
user: bobj |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters