19 lines
592 B
Django/Jinja
19 lines
592 B
Django/Jinja
# {{ ansible_managed }}
|
|
|
|
{% for acl_name, acls in squid_acl.items() %}
|
|
{% for acl in acls %}
|
|
acl {{ acl_name }} {{ acl.type }} {% if acl.list is defined and acl.list %}"/etc/squid/{{ acl.value }}.list"{% else %}{{ acl.value }}{% endif %}
|
|
|
|
{% endfor %}
|
|
{% endfor %}
|
|
|
|
{% for option, value in squid_full_config.items() %}
|
|
{% if value is sameas True %}{{ option }} on
|
|
{% elif value is sameas False %}{{ option }} off
|
|
{% elif value is string or value is number %}{{ option }} {{ value }}
|
|
{% elif value is iterable %}
|
|
{% for v in value %}
|
|
{{ option }} {{ v }}
|
|
{% endfor %}
|
|
{% endif %}
|
|
{% endfor %}
|