Class: Ansible::Ruby::Modules::Win_service
- Inherits:
-
Base
- Object
- Ansible::Ruby::Models::Base
- Base
- Ansible::Ruby::Modules::Win_service
- Defined in:
- lib/ansible/ruby/modules/generated/core/windows/win_service.rb
Overview
Manages Windows services
Instance Method Summary collapse
-
#name ⇒ Object
Name of the service.
-
#start_mode ⇒ :auto, ...
Set the startup type for the service.
-
#state ⇒ :started, ...
C(started)/C(stopped) are idempotent actions that will not run commands unless necessary.
Methods inherited from Base
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
#name ⇒ Object
Returns 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.
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.
19 |
# File 'lib/ansible/ruby/modules/generated/core/windows/win_service.rb', line 19 attribute :state |