Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Render logging of manual delete cron job optional #95

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
### Modules ---
# Configure Burp manual delete
burp_manual_delete_enabled: true
burp_manual_delete_logs: true
# Configure Burp Autoupgrade
burp_server_autoupgrade_enabled: true
# Activate clients from git repository
Expand Down
2 changes: 1 addition & 1 deletion tasks/7_1_manual_delete.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
- name: manual_delete | Cron task to delete files in burp trash
cron:
name: delete files in burp trash
job: 'rm -rfv {{ burp_trash }}/* >> {{ burp_logs }}/manual_delete.log'
job: 'flock --exclusive {{ burp_trash }} --command "rm -rfv {{ burp_trash }}/*" >> {% if burp_manual_delete_logs %}{{ burp_logs }}/manual_delete.log{% else %}/dev/null {% endif %}'
user: root
cron_file: manual_delete
minute: "{{ item.minute }}"
Expand Down