You are reading an unmaintained version of the Ansible documentation. Unmaintained Ansible versions can contain unfixed security vulnerabilities (CVE). Please upgrade to a maintained version. See the latest Ansible documentation .
dpkg_selections - Dpkg package selection selections
Change dpkg package selection state via –get-selections and –set-selections.
parameter
required
default
choices
comments
name
yes
Name of the package
selection
yes
install hold deinstall purge
The selection state to set the package to.
# Prevent python from being upgraded.
- dpkg_selections :
name : python
selection : hold
Note
This module won’t cause any packages to be installed/removed/purged, use the apt
module for that.
Copyright © 2017 Red Hat, Inc.
Last updated on Nov 15, 2022.
Ansible docs are generated from GitHub sources using Sphinx using a theme provided by Read the Docs . . Module documentation is not edited directly, but is generated from the source code for the modules. To submit an update to module docs, edit the 'DOCUMENTATION' metadata in the modules directory of the core source code repository .