Skip to content
This repository has been archived by the owner on Apr 7, 2021. It is now read-only.

Commit

Permalink
Remove logrotate setting
Browse files Browse the repository at this point in the history
This is outside the scope of this role (see #44).
  • Loading branch information
duck-rh committed Oct 10, 2017
1 parent d052840 commit 135cc0b
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 15 deletions.
5 changes: 0 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,11 +90,6 @@ automatically enable the hidden service and add the .onion alias to the httpd co
hardening for anonymisation purpose is done, the goal is mostly to enable regular website to be served over
tor to let the choice to people.

## Log retention period

Logs are rotated on a regular basis, and kept for some amount on time on the server. The default is 8 weeks, but it
can be tweaked with the `log_retention_week` variable

## Redirection

If the variable `redirect` is set, the vhost will redirect to the new domain name. This is mostly done for
Expand Down
1 change: 0 additions & 1 deletion defaults/main.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
---
log_retention_week: 8
use_letsencrypt: False
force_tls: False
use_freeipa: False
Expand Down
9 changes: 0 additions & 9 deletions tasks/common.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,15 +45,6 @@
- https
when: ansible_distribution == 'Fedora' or ansible_distribution_major_version == '7'

- name: Set log retention configuration
lineinfile:
dest: /etc/logrotate.d/httpd
regexp: "^(\s+)rotate"
backrefs: yes
line: "\1rotate {{ log_retention_week }}"
state: present
when: log_retention_week is defined

- name: Set _httpd_common
set_fact:
_httpd_common: True
Expand Down

0 comments on commit 135cc0b

Please sign in to comment.