Merge pull request #43 from daks/context-fix
fix: corrected indentation on context in file.managed states
This commit is contained in:
commit
f99e3b71ac
1 changed files with 4 additions and 4 deletions
|
@ -22,11 +22,11 @@ logrotate-{{ key }}:
|
||||||
- template: jinja
|
- template: jinja
|
||||||
- context:
|
- context:
|
||||||
{% if value is mapping %}
|
{% if value is mapping %}
|
||||||
path: {{ value.get('path', [key]) | json }}
|
path: {{ value.get('path', [key]) | json }}
|
||||||
data: {{ value.get('config', []) | json }}
|
data: {{ value.get('config', []) | json }}
|
||||||
{% else %}
|
{% else %}
|
||||||
path: [ {{ key | json }} ]
|
path: [ {{ key | json }} ]
|
||||||
data: {{ value | json }}
|
data: {{ value | json }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{%- endfor -%}
|
{%- endfor -%}
|
||||||
|
|
Loading…
Reference in a new issue