W3cubDocs

/Ansible

debconf - Configure a .deb package

New in version 1.6.

Synopsis

Configure a .deb package using debconf-set-selections. Or just query existing selections.

Requirements (on host that executes module)

  • debconf
  • debconf-utils

Options

parameter required default choices comments
name
yes
Name of package to configure.
aliases: pkg
question
no
A debconf configuration setting
aliases: setting, selection
unseen
no
Do not set 'seen' flag when pre-seeding
value
no
Value to set the configuration to
aliases: answer
vtype
no
  • string
  • password
  • boolean
  • select
  • multiselect
  • note
  • error
  • title
  • text
  • seen
The type of the value supplied.
seen was added in 2.2.

Examples

# Set default locale to fr_FR.UTF-8
debconf: name=locales question='locales/default_environment_locale' value=fr_FR.UTF-8 vtype='select'

# set to generate locales:
debconf: name=locales question='locales/locales_to_be_generated'  value='en_US.UTF-8 UTF-8, fr_FR.UTF-8 UTF-8' vtype='multiselect'

# Accept oracle license
debconf: name='oracle-java7-installer' question='shared/accepted-oracle-license-v1-1' value='true' vtype='select'

# Specifying package you can register/return the list of questions and current values
debconf: name='tzdata'

Notes

Note

This module requires the command line debconf tools.

Note

A number of questions have to be answered (depending on the package). Use ‘debconf-show <package>’ on any Debian or derivative with the package installed to see questions/settings available.

Note

Some distros will always record tasks involving the setting of passwords as changed. This is due to debconf-get-selections masking passwords.

This is an Extras Module

For more information on what this means please read Extras Modules

For help in developing on modules, should you be so inclined, please read Community Information & Contributing, developing_test_pr and Developing Modules.

© 2012–2016 Michael DeHaan
© 2016 Red Hat, Inc.
Licensed under the GNU General Public License version 3.
https://docs.ansible.com/ansible/debconf_module.html