Class: Ansible::Ruby::Modules::Win_service

Inherits:
Base show all
Defined in:
lib/ansible/ruby/modules/generated/core/windows/win_service.rb

Overview

Manages Windows services

Instance Method Summary collapse

Methods inherited from Base

#ansible_name, #to_h

Methods inherited from Ansible::Ruby::Models::Base

attr_option, attr_options, attribute, #initialize, remove_existing_validations, #to_h, validates

Constructor Details

This class inherits a constructor from Ansible::Ruby::Models::Base

Instance Method Details

#nameObject

Returns Name of the service.

Returns:

  • (Object)

    Name of the service



11
# File 'lib/ansible/ruby/modules/generated/core/windows/win_service.rb', line 11

attribute :name

#start_mode:auto, ...

Returns Set the startup type for the service.

Returns:

  • (:auto, :manual, :disabled, nil)

    Set the startup type for the service



15
# File 'lib/ansible/ruby/modules/generated/core/windows/win_service.rb', line 15

attribute :start_mode

#state:started, ...

Returns C(started)/C(stopped) are idempotent actions that will not run commands unless necessary. C(restarted) will always bounce the service.

Returns:

  • (:started, :stopped, :restarted, nil)

    C(started)/C(stopped) are idempotent actions that will not run commands unless necessary. C(restarted) will always bounce the service.



19
# File 'lib/ansible/ruby/modules/generated/core/windows/win_service.rb', line 19

attribute :state