diff --git a/CHANGELOG.md b/CHANGELOG.md index 6470e666..7cd1a666 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -30,6 +30,7 @@ The **patch** part changes incrementally at each release. * nagios-nrpe: mark plugins as executable * mongodb: configuration is forced by default but it's configurable (default: `false`) * mongodb: allow unauthenticated packages for Jessie +* mongodb: rename logrotate script * nginx: package name can be specified (default: `nginx-full`) * evolinux-base: Exec the firewall tasks sooner (to avoid dependency issues) * webapps/evoadmin-web: Fail if variable evoadmin_contact_email isn't defined diff --git a/mongodb/tasks/main_stretch.yml b/mongodb/tasks/main_stretch.yml index 416ea727..3f553c41 100644 --- a/mongodb/tasks/main_stretch.yml +++ b/mongodb/tasks/main_stretch.yml @@ -28,6 +28,12 @@ - name: Configure logrotate template: src: logrotate_stretch.j2 - dest: /etc/logrotate.d/mongodb + dest: /etc/logrotate.d/mongodb-server force: yes backup: no + +- name: disable previous logrotate + command: mv /etc/logrotate.d/mongodb /etc/logrotate.d/mongodb.disabled + args: + removes: /etc/logrotate.d/mongodb + creates: /etc/logrotate.d/mongodb.disabled