main.yml 414 B

12345678910111213
  1. ---
  2. - name: nickhammond.logrotate | Install logrotate
  3. package: name=logrotate state=present
  4. when: not openshift.common.is_atomic | bool
  5. register: result
  6. until: result | success
  7. - name: nickhammond.logrotate | Setup logrotate.d scripts
  8. template:
  9. src: logrotate.d.j2
  10. dest: /etc/logrotate.d/{{ item.name }}
  11. with_items: "{{ logrotate_scripts | default([]) }}"
  12. when: logrotate_scripts is defined