Class: Ansible::Ruby::Modules::Nosh
- Inherits:
-
Base
- Object
- Ansible::Ruby::Models::Base
- Base
- Ansible::Ruby::Modules::Nosh
- Defined in:
- lib/ansible/ruby/modules/generated/system/nosh.rb
Overview
Control running and enabled state for system-wide or user services. BSD and Linux systems are supported.
Instance Method Summary collapse
-
#enabled ⇒ Symbol?
Enable or disable the service, independently of C(*.preset) file preference or running state.
-
#name ⇒ String
Name of the service to manage.
-
#preset ⇒ Symbol?
Enable or disable the service according to local preferences in *.preset files.
-
#state ⇒ :started, ...
C(started)/C(stopped) are idempotent actions that will not run commands unless necessary.
-
#user ⇒ :yes, ...
Run system-control talking to the calling user’s service manager, rather than the system-wide service manager.
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
#enabled ⇒ Symbol?
21 |
# File 'lib/ansible/ruby/modules/generated/system/nosh.rb', line 21 attribute :enabled |
#name ⇒ String
13 |
# File 'lib/ansible/ruby/modules/generated/system/nosh.rb', line 13 attribute :name |
#preset ⇒ Symbol?
25 |
# File 'lib/ansible/ruby/modules/generated/system/nosh.rb', line 25 attribute :preset |
#state ⇒ :started, ...
17 |
# File 'lib/ansible/ruby/modules/generated/system/nosh.rb', line 17 attribute :state |
#user ⇒ :yes, ...
29 |
# File 'lib/ansible/ruby/modules/generated/system/nosh.rb', line 29 attribute :user |