1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Merge pull request #6810 from bob-smith/debconf-text

debconf detail requirements and fix typos
This commit is contained in:
Michael DeHaan 2014-04-02 17:25:22 -04:00
commit 0981e405d6

View file

@ -34,6 +34,7 @@ notes:
- A number of questions have to be answered (depending on the package). - A number of questions have to be answered (depending on the package).
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.
requirements: [ debconf, debconf-utils ]
options: options:
name: name:
description: description:
@ -127,10 +128,10 @@ def main():
supports_check_mode=True, supports_check_mode=True,
) )
#TODO: enable passing array of optionas and/or debconf file from get-selections dump #TODO: enable passing array of options and/or debconf file from get-selections dump
pkg = module.params["name"] pkg = module.params["name"]
question = module.params["question"] question = module.params["question"]
vtype = module.params["vtype"] vtype = module.params["vtype"]
value = module.params["value"] value = module.params["value"]
unseen = module.params["unseen"] unseen = module.params["unseen"]
@ -142,7 +143,7 @@ def main():
if question is not None: if question is not None:
if vtype is None or value is None: if vtype is None or value is None:
module.fail_json(msg="when supliying a question you must supply a valide vtype and value") module.fail_json(msg="when supplying a question you must supply a valid vtype and value")
if not question in prev or prev[question] != value: if not question in prev or prev[question] != value:
changed = True changed = True