feat: Use loop in templates
This commit is contained in:
1 parent
3ffb13ba5b
commit
fbb43e8c7c
4 files changed
+17
-11
No files matched your search
@@ -1,9 +1,10 @@
|
||||
# {{ ansible_managed }}
|
||||
|
||||
Package: *
|
||||
Pin: release a=testing
|
||||
Pin-Priority: -10
|
||||
{% for item in apt_preferences %}
|
||||
Package: {{ item.package }}
|
||||
Pin: {{ item.pin }}
|
||||
Pin-Priority: {{ item.priority }}
|
||||
{% if not loop.last %}
|
||||
|
||||
Package: *
|
||||
Pin: release a=unstable
|
||||
Pin-Priority: -20
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
@@ -1,7 +1,12 @@
|
||||
# {{ ansible_managed }}
|
||||
|
||||
{% for item in apt_repositories %}
|
||||
Types: deb
|
||||
URIs: {{ item.url }}
|
||||
Suites: {{ item.suites }}
|
||||
Components: {{ item.components }}
|
||||
Signed-By: {{ item.key_path }}
|
||||
{% if not loop.last %}
|
||||
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
Reference in new issue
Block a user