@ -22,6 +22,7 @@ notes:
Use ' debconf-show <package> ' on any Debian or derivative with the package
Use ' debconf-show <package> ' on any Debian or derivative with the package
installed to see questions / settings available .
installed to see questions / settings available .
- Some distros will always record tasks involving the setting of passwords as changed . This is due to debconf - get - selections masking passwords .
- Some distros will always record tasks involving the setting of passwords as changed . This is due to debconf - get - selections masking passwords .
- It is highly recommended to add I ( no_log = True ) to task while handling sensitive information using this module .
requirements :
requirements :
- debconf
- debconf
- debconf - utils
- debconf - utils
@ -40,6 +41,7 @@ options:
vtype :
vtype :
description :
description :
- The type of the value supplied .
- The type of the value supplied .
- It is highly recommended to add I ( no_log = True ) to task while specifying I ( vtype = password ) .
- C ( seen ) was added in Ansible 2.2 .
- C ( seen ) was added in Ansible 2.2 .
type : str
type : str
choices : [ boolean , error , multiselect , note , password , seen , select , string , text , title ]
choices : [ boolean , error , multiselect , note , password , seen , select , string , text , title ]
@ -82,6 +84,14 @@ EXAMPLES = r'''
- name : Specifying package you can register / return the list of questions and current values
- name : Specifying package you can register / return the list of questions and current values
debconf :
debconf :
name : tzdata
name : tzdata
- name : Pre - configure tripwire site passphrase
debconf :
name : tripwire
question : tripwire / site - passphrase
value : " {{ site_passphrase }} "
vtype : password
no_log : True
'''
'''
from ansible . module_utils . _text import to_text
from ansible . module_utils . _text import to_text