summaryrefslogtreecommitdiffstats
path: root/roles/nickhammond.logrotate/tasks/main.yml
blob: 0a0cf1fae1a9e5422687f36a424131e9ff616ce2 (plain)
1
2
3
4
5
6
7
8
9
10
---
- name: nickhammond.logrotate | Install logrotate
  action: "{{ ansible_pkg_mgr }} name=logrotate state=present"

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