kayobe/ansible/roles/apt/templates/kayobe.sources.j2
Matt Crees 2b06c6a39a Support setting whether an Apt repo is trusted
Useful if you're configuring your own private repos, and don't/can't
sign them.

Change-Id: I2d592c5479530b2fe9a60c14ee59e817b8402490
2024-07-10 16:39:02 +01:00

19 lines
527 B
Django/Jinja

# {{ ansible_managed }}
{% for repo in apt_repositories %}
Types: {{ repo.types | default('deb') }}
URIs: {{ repo.url }}
Suites: {{ repo.suites | default(ansible_facts.distribution_release) }}
Components: {{ repo.components | default('main') }}
{% if repo.signed_by is defined %}
Signed-by: {{ apt_keys_path }}/{{ repo.signed_by }}
{% endif %}
{% if repo.architecture is defined %}
Architecture: {{ repo.architecture }}
{% endif %}
{% if repo.trusted is defined %}
Trusted: {{ repo.trusted | bool }}
{% endif %}
{% endfor %}