mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-10-05 16:04:09 -07:00
* 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:
parent
1b2fbd72de
commit
5657889b28
39 changed files with 162 additions and 146 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue