Kevin Carter f139eb09d4 added role to pin packages
This new role is now providing the ability for a user to pin apt
packages as they see fit. The idea is to allow someone to implement
pinning in a generic way that can be represented as a global variable
or as a hostvar. The new role has been added to all install roles as
a dependency which will allow it to ensure that packages are pinned
everywhere as would be expected.

Change-Id: I354e8515570fa7174366ba57d57aece3c304568e
2015-05-08 13:22:42 -05:00

24 lines
616 B
Django/Jinja

# {{ ansible_managed }}
{% for item in apt_pinned_packages %}
{% if item.version is defined %}
Package: {{ item.package }}
Pin: version {{ item.version }}
Pin-Priority: {{ item.priority | default(apt_package_pinning_priority) }}
{% endif %}
{% if item.origin is defined %}
Package: {{ item.package }}
Pin: origin {{ item.origin }}
Pin-Priority: {{ item.priority | default(apt_package_pinning_priority) }}
{% endif %}
{% if item.release is defined %}
Package: {{ item.package }}
Pin: release o={{ item.release }}
Pin-Priority: {{ item.priority | default(apt_package_pinning_priority) }}
{% endif %}
{% endfor %}