ansible / ansible.builtin / v2.7.7 / module / dpkg_selections Dpkg package selection selections | "added in version" 2.0 of ansible.builtin" Authors: Brian Brazil (@brian-brazil) <brian.brazil@boxever.com> preview | supported by communityansible.builtin.dpkg_selections (v2.7.7) — module
pip
Install with pip install ansible==2.7.7
Change dpkg package selection state via --get-selections and --set-selections.
# Prevent python from being upgraded. - dpkg_selections: name: python selection: hold
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