ansible.builtin.dpkg_selections (v2.5.12) — module

Dpkg package selection selections

| "added in version" 2.0 of ansible.builtin"

Authors: Brian Brazil <brian.brazil@boxever.com>

preview | supported by community

Install Ansible via pip

Install with pip install ansible==2.5.12

Description

Change dpkg package selection state via --get-selections and --set-selections.

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
# Prevent python from being upgraded.
- dpkg_selections:
    name: python
    selection: hold

Inputs

    
name:
    description:
    - Name of the package
    required: true

selection:
    choices:
    - install
    - hold
    - deinstall
    - purge
    description:
    - The selection state to set the package to.
    required: true