mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-24 03:11:24 -07:00
Adjust booleans in system modules (#5153)
* 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>
This commit is contained in:
parent
bcecf2dcdc
commit
be2de15c66
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:
|
||||
|
@ -40,7 +40,7 @@ options:
|
|||
description:
|
||||
- The action to take upon the key/value.
|
||||
- State C(get) is deprecated and will be removed in community.general 8.0.0. Please use the module M(community.general.gconftool2_info) instead.
|
||||
required: yes
|
||||
required: true
|
||||
choices: [ absent, get, present ]
|
||||
config_source:
|
||||
type: str
|
||||
|
@ -53,7 +53,7 @@ options:
|
|||
specified then the config_source must be specified as well.
|
||||
See man gconftool-2(1).
|
||||
type: bool
|
||||
default: 'no'
|
||||
default: false
|
||||
'''
|
||||
|
||||
EXAMPLES = """
|
||||
|
@ -192,11 +192,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