mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-27 07:01:22 -07:00
Typo and style fixes in docs and messages for svc module (#48298)
Minor typo and style fixes in documentation. Fixed two error messages which incorrectly used "Could" instead of "Could *not*".
This commit is contained in:
parent
c062f37984
commit
ff37e5364c
1 changed files with 7 additions and 7 deletions
|
@ -37,21 +37,21 @@ options:
|
||||||
downed:
|
downed:
|
||||||
description:
|
description:
|
||||||
- Should a 'down' file exist or not, if it exists it disables auto startup.
|
- Should a 'down' file exist or not, if it exists it disables auto startup.
|
||||||
defaults to no. Downed does not imply stopped.
|
Defaults to no. Downed does not imply stopped.
|
||||||
type: bool
|
type: bool
|
||||||
default: 'no'
|
default: 'no'
|
||||||
enabled:
|
enabled:
|
||||||
description:
|
description:
|
||||||
- Wheater the service is enabled or not, if disabled it also implies stopped.
|
- Whether the service is enabled or not, if disabled it also implies stopped.
|
||||||
Make note that a service can be enabled and downed (no auto restart).
|
Take note that a service can be enabled and downed (no auto restart).
|
||||||
type: bool
|
type: bool
|
||||||
service_dir:
|
service_dir:
|
||||||
description:
|
description:
|
||||||
- directory svscan watches for services
|
- Directory svscan watches for services
|
||||||
default: /service
|
default: /service
|
||||||
service_src:
|
service_src:
|
||||||
description:
|
description:
|
||||||
- directory where services are defined, the source of symlinks to service_dir.
|
- Directory where services are defined, the source of symlinks to service_dir.
|
||||||
'''
|
'''
|
||||||
|
|
||||||
EXAMPLES = '''
|
EXAMPLES = '''
|
||||||
|
@ -273,7 +273,7 @@ def main():
|
||||||
else:
|
else:
|
||||||
svc.disable()
|
svc.disable()
|
||||||
except (OSError, IOError) as e:
|
except (OSError, IOError) as e:
|
||||||
module.fail_json(msg="Could change service link: %s" % to_native(e))
|
module.fail_json(msg="Could not change service link: %s" % to_native(e))
|
||||||
|
|
||||||
if state is not None and state != svc.state:
|
if state is not None and state != svc.state:
|
||||||
changed = True
|
changed = True
|
||||||
|
@ -290,7 +290,7 @@ def main():
|
||||||
else:
|
else:
|
||||||
os.unlink(d_file)
|
os.unlink(d_file)
|
||||||
except (OSError, IOError) as e:
|
except (OSError, IOError) as e:
|
||||||
module.fail_json(msg="Could change downed file: %s " % (to_native(e)))
|
module.fail_json(msg="Could not change downed file: %s " % (to_native(e)))
|
||||||
|
|
||||||
module.exit_json(changed=changed, svc=svc.report())
|
module.exit_json(changed=changed, svc=svc.report())
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue