You are reading an unmaintained version of the Ansible documentation. Unmaintained Ansible versions can contain unfixed security vulnerabilities (CVE). Please upgrade to a maintained version. See the latest Ansible documentation.
-name:Restart a servicewin_service:name:spoolerstate:restarted-name:Set service startup mode to auto and ensure it is startedwin_service:name:spoolerstart_mode:autostate:started-name:pause a servicewin_service:name:Netlogonstate:paused# a new service will also default to the following values:# - username: LocalSystem# - state: stopped# - start_mode: auto-name:create a new servicewin_service:name:service namepath:C:\temp\test.exe-name:create a new service with extra detailswin_service:name:service namepath:C:\temp\test.exedisplay_name:Service Namedescription:A test service description-name:remove a servicewin_service:name:service namestate:absent-name:check if a service is installedwin_service:name:service nameregister:service_info-name:set the log on user to a domain accountwin_service:name:service namestate:restartedusername:DOMAIN\Userpassword:Password-name:set the log on user to a local accountwin_service:name:service namestate:restartedusername:.\Administratorpassword:Password-name:set the log on user to Local Systemwin_service:name:service namestate:restartedusername:LocalSystempassword:""-name:set the log on user to Local System and allow it to interact with the desktopwin_service:name:service namestate:restartedusername:LocalSystempassword:""desktop_interact:True-name:set the log on user to Network Servicewin_service:name:service namestate:restartedusername:NT AUTHORITY\NetworkServicepassword:""-name:set the log on user to Local Servicewin_service:name:service namestate:restartedusername:NT AUTHORITY\LocalServicepassword:""-name:set dependencies to ones only in the listwin_service:name:service namedependencies:['service1','service2']-name:add dependencies to existing dependencieswin_service:name:service namedependencies:['service1','service2']dependency_action:add-name:remove dependencies from existing dependencieswin_service:name:service namedependencies:['service1','service2']dependency_action:remove
This module is flagged as stableinterface which means that the maintainers for this module guarantee that no backward incompatible interface changes will be made.
For more information about Red Hat’s this support of this module, please
refer to this knowledge base article<https://access.redhat.com/articles/rhel-top-support-policies>