Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
ansible
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
ansible
Commits
0981e405
Commit
0981e405
authored
Apr 02, 2014
by
Michael DeHaan
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #6810 from bob-smith/debconf-text
debconf detail requirements and fix typos
parents
0125f36c
f89262c7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
library/system/debconf
+4
-3
No files found.
library/system/debconf
View file @
0981e405
...
...
@@ -34,6 +34,7 @@ notes:
- 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.
requirements: [ debconf, debconf-utils ]
options:
name:
description:
...
...
@@ -127,10 +128,10 @@ def main():
supports_check_mode
=
True
,
)
#TODO: enable passing array of option
a
s 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"
]
question
=
module
.
params
[
"question"
]
vtype
=
module
.
params
[
"vtype"
]
vtype
=
module
.
params
[
"vtype"
]
value
=
module
.
params
[
"value"
]
unseen
=
module
.
params
[
"unseen"
]
...
...
@@ -142,7 +143,7 @@ def main():
if
question
is
not
None
:
if
vtype
is
None
or
value
is
None
:
module
.
fail_json
(
msg
=
"when sup
liying a question you must supply a valide
vtype and value"
)
module
.
fail_json
(
msg
=
"when sup
plying a question you must supply a valid
vtype and value"
)
if
not
question
in
prev
or
prev
[
question
]
!=
value
:
changed
=
True
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment