Class: Ansible::Ruby::Modules::Openwrt_init
- Inherits:
-
Base
- Object
- Ansible::Ruby::Models::Base
- Base
- Ansible::Ruby::Modules::Openwrt_init
- Defined in:
- lib/ansible/ruby/modules/generated/system/openwrt_init.rb
Overview
Controls OpenWrt services on remote hosts.
Instance Method Summary collapse
-
#enabled ⇒ Symbol?
Whether the service should start on boot.
-
#name ⇒ String
Name of the service.
-
#pattern ⇒ Object?
If the service does not respond to the ‘running’ 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 ‘running’ result.
-
#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, fix_inclusion, #initialize, remove_existing_validations, #to_h, validates
Constructor Details
This class inherits a constructor from Ansible::Ruby::Models::Base
Instance Method Details
#enabled ⇒ Symbol?
Returns Whether the service should start on boot. B(At least one of state and enabled are required.).
20 |
# File 'lib/ansible/ruby/modules/generated/system/openwrt_init.rb', line 20 attribute :enabled |
#name ⇒ String
Returns Name of the service.
12 |
# File 'lib/ansible/ruby/modules/generated/system/openwrt_init.rb', line 12 attribute :name |
#pattern ⇒ Object?
Returns If the service does not respond to the ‘running’ 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 ‘running’ result. If the string is found, the service will be assumed to be running.
24 |
# File 'lib/ansible/ruby/modules/generated/system/openwrt_init.rb', line 24 attribute :pattern |
#state ⇒ :started, ...
Returns C(started)/C(stopped) are idempotent actions that will not run commands unless necessary. C(restarted) will always bounce the service. C(reloaded) will always reload.
16 |
# File 'lib/ansible/ruby/modules/generated/system/openwrt_init.rb', line 16 attribute :state |