openstack-ansible/playbooks/roles/apt_package_pinning
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
..
defaults added role to pin packages 2015-05-08 13:22:42 -05:00
meta added role to pin packages 2015-05-08 13:22:42 -05:00
tasks added role to pin packages 2015-05-08 13:22:42 -05:00
templates added role to pin packages 2015-05-08 13:22:42 -05:00
LICENSE added role to pin packages 2015-05-08 13:22:42 -05:00
README.rst added role to pin packages 2015-05-08 13:22:42 -05:00

Pin apt packages

tags

openstack, apt, pinning, cloud, ansible

category

*nix

Role for pinning apt packages.

Example Ansible play

- 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" }