openstack-ansible/playbooks/roles/apt_package_pinning/README.rst
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

23 lines
631 B
ReStructuredText

Pin apt packages
################
:tags: openstack, apt, pinning, cloud, ansible
:category: \*nix
Role for pinning apt packages.
Example Ansible play
.. code-block:: yaml
- name: Pin packages on all "hosts"
hosts: hosts
user: root
roles:
- { role: "apt_package_pinning", tags: [ "apt-package-pinning" ] }
vars:
apt_pinned_packages:
- { package: "lxc", version: "1.0.7-0ubuntu0.1" }
- { package: "libvirt-bin", version: "1.2.2-0ubuntu13.1.9" }
- { package: "rabbitmq-server", origin: "www.rabbitmq.com" }
- { package: "*", release: "MariaDB" }