dpkg_selections

Collection: builtin

Full Name: parallax.builtin.dpkg_selections

Aliases: ansible.builtin.dpkg_selections, dpkg_selections

Synopsis

Pin or unpin a dpkg package selection

Parameters

NameTypeRequiredDefaultDescription
namestringyesName of the package
selectionstringyesThe selection state Choices: install, hold, deinstall, purge

Example

- name: Hold the kernel at its current version
  dpkg_selections:
    name: linux-image-amd64
    selection: hold