diff options
Diffstat (limited to 'roles/nickhammond.logrotate/tasks')
-rw-r--r-- | roles/nickhammond.logrotate/tasks/main.yml | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/roles/nickhammond.logrotate/tasks/main.yml b/roles/nickhammond.logrotate/tasks/main.yml new file mode 100644 index 000000000..657cb10ec --- /dev/null +++ b/roles/nickhammond.logrotate/tasks/main.yml @@ -0,0 +1,11 @@ +--- +- name: nickhammond.logrotate | Install logrotate + package: name=logrotate state=present + when: not openshift.common.is_atomic | bool + +- 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 |