Adjust booleans in system modules (#5153) (#5178)

* Adjust booleans in system modules.

* Fix some IP addresses

Co-authored-by: Sandra McCann <samccann@redhat.com>

Co-authored-by: Sandra McCann <samccann@redhat.com>
(cherry picked from commit be2de15c66)
This commit is contained in:
Felix Fontein 2022-08-24 20:46:48 +02:00 committed by GitHub
commit 5657889b28
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
39 changed files with 162 additions and 146 deletions

View file

@ -23,7 +23,7 @@ options:
description:
- A GConf preference key is an element in the GConf repository
that corresponds to an application preference. See man gconftool-2(1)
required: yes
required: true
value:
type: str
description:
@ -39,7 +39,7 @@ options:
type: str
description:
- The action to take upon the key/value.
required: yes
required: true
choices: [ absent, get, present ]
config_source:
type: str
@ -52,7 +52,7 @@ options:
specified then the config_source must be specified as well.
See man gconftool-2(1)
type: bool
default: 'no'
default: false
'''
EXAMPLES = """
@ -187,11 +187,11 @@ def main():
% str(state))
if direct and config_source is None:
module.fail_json(msg='If "direct" is "yes" then the ' +
module.fail_json(msg='If "direct" is "true" then the ' +
'"config_source" must be specified')
elif not direct and config_source is not None:
module.fail_json(msg='If the "config_source" is specified ' +
'then "direct" must be "yes"')
'then "direct" must be "true"')
# Create a gconf2 preference
gconf_pref = GConf2Preference(module, key, value_type,