debconf

Collection: builtin

Full Name: parallax.builtin.debconf

Aliases: ansible.builtin.debconf, debconf

Synopsis

Read and set debconf answers before a package is configured

Parameters

NameTypeRequiredDefaultDescription
namestringyesName of package to configure
questionstringA debconf configuration setting
valuestringValue to set the configuration setting to
vtypestringThe type of the value supplied Choices: boolean, error, multiselect, note, password, seen, select, string, text, title
unseenboolfalseDo not set ‘seen’ flag when pre-seeding

Example

- name: Pre-accept the Oracle JDK licence
  debconf:
    name: oracle-java8-installer
    question: shared/accepted-oracle-license-v1-1
    value: "true"
    vtype: select