aboutsummaryrefslogtreecommitdiffstats
path: root/roles/debian/templates
diff options
context:
space:
mode:
authorEmil Renner Berthing <esmil@labitat.dk>2018-11-22 22:14:39 +0100
committerEmil Renner Berthing <esmil@labitat.dk>2018-11-22 22:14:39 +0100
commitf0231d0d9454467ac0c1fc8e5a79a63204425851 (patch)
tree161ead8a343b092c5b59aa747d78cd12a903f3d5 /roles/debian/templates
parent8bc773dd99c20b47a45dda791ea1f8d60df4a733 (diff)
downloadlabitat-ansible-f0231d0d9454467ac0c1fc8e5a79a63204425851.tar.gz
labitat-ansible-f0231d0d9454467ac0c1fc8e5a79a63204425851.tar.xz
labitat-ansible-f0231d0d9454467ac0c1fc8e5a79a63204425851.zip
debian: apt: update and manage apt-preferences.d
Diffstat (limited to 'roles/debian/templates')
-rw-r--r--roles/debian/templates/apt-preferences.j29
1 files changed, 9 insertions, 0 deletions
diff --git a/roles/debian/templates/apt-preferences.j2 b/roles/debian/templates/apt-preferences.j2
new file mode 100644
index 0000000..f1f4dba
--- /dev/null
+++ b/roles/debian/templates/apt-preferences.j2
@@ -0,0 +1,9 @@
+{% if 'package' in item.value %}
+Package: {{ item.value.package }}
+{% endif %}
+{% if 'pin' in item.value %}
+Pin: {{ item.value.pin }}
+{% endif %}
+{% if 'pin-priority' in item.value %}
+Pin-Priority: {{ item.value['pin-priority'] }}
+{% endif %}