summaryrefslogtreecommitdiffstats
path: root/roles/nickhammond.logrotate/templates/logrotate.d.j2
blob: 6453be6b2531b5f0a45cacea903e0bd59292d472 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# {{ ansible_managed }}

{{ item.path }} {
  {% if item.options is defined -%}
  {% for option in item.options -%}
  {{ option }}
  {% endfor -%}
  {% endif %}
  {%- if item.scripts is defined -%}
  {%- for name, script in item.scripts.iteritems() -%}
  {{ name }}
    {{ script }}
  endscript
  {% endfor -%}
  {% endif -%}
}