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

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

Instance Method Summary collapse

Methods inherited from Base

#to_h

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

attr_option, attr_options, attribute, #initialize, #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



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

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



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

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.



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

attribute :state