Class: Ansible::Ruby::Modules::Svc

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

Overview

Controls daemontools services on remote hosts using the svc utility.

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

#downed:yes, ...

Returns Should a ‘down’ file exist or not, if it exists it disables auto startup. defaults to no. Downed does not imply stopped.

Returns:

  • (:yes, :no, nil)

    Should a ‘down’ file exist or not, if it exists it disables auto startup. defaults to no. Downed does not imply stopped.



20
# File 'lib/ansible/ruby/modules/generated/system/svc.rb', line 20

attribute :downed

#enabledSymbol?

Returns Wheater the service is enabled or not, if disabled it also implies stopped. Make note that a service can be enabled and downed (no auto restart).

Returns:

  • (Symbol, nil)

    Wheater the service is enabled or not, if disabled it also implies stopped. Make note that a service can be enabled and downed (no auto restart).



24
# File 'lib/ansible/ruby/modules/generated/system/svc.rb', line 24

attribute :enabled

#nameString

Returns Name of the service to manage.

Returns:

  • (String)

    Name of the service to manage.



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

attribute :name

#service_dirString?

Returns directory svscan watches for services.

Returns:

  • (String, nil)

    directory svscan watches for services



28
# File 'lib/ansible/ruby/modules/generated/system/svc.rb', line 28

attribute :service_dir

#service_srcObject?

Returns directory where services are defined, the source of symlinks to service_dir.

Returns:

  • (Object, nil)

    directory where services are defined, the source of symlinks to service_dir.



32
# File 'lib/ansible/ruby/modules/generated/system/svc.rb', line 32

attribute :service_src

#state:killed, ...

Returns C(Started)/C(stopped) are idempotent actions that will not run commands unless necessary. C(restarted) will always bounce the svc (svc -t) and C(killed) will always bounce the svc (svc -k). C(reloaded) will send a sigusr1 (svc -1). C(once) will run a normally downed svc once (svc -o), not really an idempotent operation.

Returns:

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

    C(Started)/C(stopped) are idempotent actions that will not run commands unless necessary. C(restarted) will always bounce the svc (svc -t) and C(killed) will always bounce the svc (svc -k). C(reloaded) will send a sigusr1 (svc -1). C(once) will run a normally downed svc once (svc -o), not really an idempotent operation.



16
# File 'lib/ansible/ruby/modules/generated/system/svc.rb', line 16

attribute :state