summaryrefslogtreecommitdiffstats
path: root/roles/nickhammond.logrotate/templates/logrotate.d.j2
blob: 1ad1c595c1dda77a1e37412cf706eef15e4ac7dd (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.items() -%}
  {{ name }}
    {{ script }}
  endscript
  {% endfor -%}
  {% endif -%}
}