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

Commit

Permalink
set Apache logrotate, not the global config (see #44)
Browse files Browse the repository at this point in the history
  • Loading branch information
duck-rh committed Oct 10, 2017
1 parent 7ca3eaf commit d052840
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tasks/common.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,10 @@

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

Expand Down

0 comments on commit d052840

Please sign in to comment.