mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-10-04 23:44:00 -07:00
win_service Added -Force option and minor cleanup (#22598)
* win_service Added -Force option and minor cleanup * Changed parameter and fixed typos
This commit is contained in:
parent
0ee108bda0
commit
6ce338d29c
3 changed files with 73 additions and 105 deletions
|
@ -41,7 +41,6 @@ options:
|
|||
service.
|
||||
- This works by C(dependency_action) to either add/remove or set the
|
||||
services in this list.
|
||||
required: False
|
||||
version_added: "2.3"
|
||||
dependency_action:
|
||||
description:
|
||||
|
@ -50,7 +49,6 @@ options:
|
|||
- Remove the dependencies to the existing dependencies.
|
||||
- Set the dependencies to only the values in the list replacing the
|
||||
existing dependencies.
|
||||
required: False
|
||||
default: set
|
||||
choices:
|
||||
- set
|
||||
|
@ -61,18 +59,23 @@ options:
|
|||
description:
|
||||
- Whether to allow the service user to interact with the desktop.
|
||||
- This should only be set to true when using the LocalSystem username.
|
||||
required: False
|
||||
default: False
|
||||
version_added: "2.3"
|
||||
description:
|
||||
description:
|
||||
- The description to set for the service.
|
||||
required: False
|
||||
version_added: "2.3"
|
||||
display_name:
|
||||
description:
|
||||
- The display name to set for the service.
|
||||
required: False
|
||||
version_added: "2.3"
|
||||
force_dependent_services:
|
||||
description:
|
||||
- If True, stopping or restarting a service with dependent services will
|
||||
force the dependent services to stop or restart also.
|
||||
- If False, stopping or restarting a service with dependent services may
|
||||
fail.
|
||||
default: False
|
||||
version_added: "2.3"
|
||||
name:
|
||||
description:
|
||||
|
@ -81,7 +84,6 @@ options:
|
|||
path:
|
||||
description:
|
||||
- The path to the executable to set for the service.
|
||||
required: False
|
||||
version_added: "2.3"
|
||||
password:
|
||||
description:
|
||||
|
@ -89,13 +91,11 @@ options:
|
|||
- This and the C(username) argument must be supplied together.
|
||||
- If specifying LocalSystem, NetworkService or LocalService this field
|
||||
must be an empty string and not null.
|
||||
required: False
|
||||
version_added: "2.3"
|
||||
start_mode:
|
||||
description:
|
||||
- Set the startup type for the service.
|
||||
- C(delayed) added in Ansible 2.3
|
||||
required: false
|
||||
choices:
|
||||
- auto
|
||||
- manual
|
||||
|
@ -107,7 +107,6 @@ options:
|
|||
commands unless necessary.
|
||||
- C(restarted) will always bounce the service.
|
||||
- C(absent) added in Ansible 2.3
|
||||
required: false
|
||||
choices:
|
||||
- started
|
||||
- stopped
|
||||
|
@ -117,7 +116,6 @@ options:
|
|||
description:
|
||||
- The username to set the service to start as.
|
||||
- This and the C(password) argument must be supplied together.
|
||||
required: False
|
||||
version_added: "2.3"
|
||||
author: "Chris Hoffman (@chrishoffman)"
|
||||
'''
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue