Class: Ansible::Ruby::Modules::Openwrt_init

Inherits:
Base show all
Defined in:
lib/ansible/ruby/modules/generated/system/openwrt_init.rb

Overview

Controls OpenWrt services on remote hosts.

Instance Method Summary collapse

Methods inherited from Base

#ansible_name, #to_h

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

#enabledSymbol?

Returns Whether the service should start on boot. B(At least one of state and enabled are required.).

Returns:

  • (Symbol, nil)

    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

#nameString

Returns Name of the service.

Returns:

  • (String)

    Name of the service.



12
# File 'lib/ansible/ruby/modules/generated/system/openwrt_init.rb', line 12

attribute :name

#patternObject?

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.

Returns:

  • (Object, nil)

    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.

Returns:

  • (:started, :stopped, :restarted, :reloaded, nil)

    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