summaryrefslogtreecommitdiffstats
path: root/roles/nickhammond.logrotate/tasks/main.yml
blob: 32d3acb86e68126796f292f0f531f4e273ec139e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
---
- name: nickhammond.logrotate | Install logrotate
  package: name=logrotate state=present
  when: not openshift.common.is_atomic | bool
  register: result
  until: result | success

- name: nickhammond.logrotate | Setup logrotate.d scripts
  template:
    src: logrotate.d.j2
    dest: /etc/logrotate.d/{{ item.name }}
  with_items: "{{ logrotate_scripts | default([]) }}"
  when: logrotate_scripts is defined