Update to 2020-05-25 15:00

master
Daniel Berteaud 5 years ago
parent af6dab0e60
commit fd03ac3330
  1. 7
      roles/dolibarr/tasks/install.yml
  2. 6
      roles/dolibarr/templates/logrotate.conf.j2

@ -122,6 +122,13 @@
state: "{{ (dolibarr_sync_from_ldap is defined and dolibarr_sync_from_ldap) | ternary('present','absent') }}" state: "{{ (dolibarr_sync_from_ldap is defined and dolibarr_sync_from_ldap) | ternary('present','absent') }}"
tags: dolibarr tags: dolibarr
- name: Set var_log_t context for log files
sefcontext:
target: '{{ dolibarr_root_dir }}/data/.*\.log'
setype: httpd_log_t
when: ansible_selinux.status == 'enabled'
tags: dolibarr
- name: Install logrotate configuration - name: Install logrotate configuration
template: src=logrotate.conf.j2 dest=/etc/logrotate.d/dolibarr_{{ dolibarr_id }} template: src=logrotate.conf.j2 dest=/etc/logrotate.d/dolibarr_{{ dolibarr_id }}
tags: dolibarr tags: dolibarr

@ -1,11 +1,7 @@
{{ dolibarr_root_dir }}/data/dolibarr.log { {{ dolibarr_root_dir }}/data/*.log {
weekly weekly
rotate 52 rotate 52
compress compress
compressoptions -T0
compresscmd /usr/bin/xz
compressext .xz
uncompresscmd /usr/bin/unxz
missingok missingok
create 640 {{ dolibarr_php_user }} {{ dolibarr_php_user }} create 640 {{ dolibarr_php_user }} {{ dolibarr_php_user }}
} }

Loading…
Cancel
Save