Class: Ansible::Ruby::Modules::Service
- Inherits:
-
Base
- Object
- Ansible::Ruby::Models::Base
- Base
- Ansible::Ruby::Modules::Service
- Defined in:
- lib/ansible/ruby/modules/generated/core/system/service.rb
Instance Method Summary collapse
-
#arguments ⇒ Object?
Additional arguments provided on the command line.
-
#enabled ⇒ :yes, ...
Whether the service should start on boot.
-
#name ⇒ String
Name of the service.
-
#pattern ⇒ String?
If the service does not respond to the status command, name a substring to look for as would be found in the output of the I(ps) command as a stand-in for a status result.
-
#runlevel ⇒ String?
For OpenRC init scripts (ex: Gentoo) only.
-
#sleep ⇒ Object?
If the service is being C(restarted) then sleep this many seconds between the stop and start command.
-
#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, #to_h, validates
Constructor Details
This class inherits a constructor from Ansible::Ruby::Models::Base
Instance Method Details
#arguments ⇒ Object?
33 |
# File 'lib/ansible/ruby/modules/generated/core/system/service.rb', line 33 attribute :arguments |
#enabled ⇒ :yes, ...
25 |
# File 'lib/ansible/ruby/modules/generated/core/system/service.rb', line 25 attribute :enabled |
#name ⇒ String
10 |
# File 'lib/ansible/ruby/modules/generated/core/system/service.rb', line 10 attribute :name |
#pattern ⇒ String?
21 |
# File 'lib/ansible/ruby/modules/generated/core/system/service.rb', line 21 attribute :pattern |
#runlevel ⇒ String?
29 |
# File 'lib/ansible/ruby/modules/generated/core/system/service.rb', line 29 attribute :runlevel |
#sleep ⇒ Object?
18 |
# File 'lib/ansible/ruby/modules/generated/core/system/service.rb', line 18 attribute :sleep |
#state ⇒ :started, ...
14 |
# File 'lib/ansible/ruby/modules/generated/core/system/service.rb', line 14 attribute :state |