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

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

Instance Method Summary collapse

Methods inherited from Base

#ansible_name, #to_h

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

#downedBoolean?

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

Returns:

  • (Boolean, nil)

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



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

attribute :downed

#enabled:yes, ...

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:

  • (:yes, :no, 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).



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

attribute :enabled

#nameString

Returns Name of the service to manage.

Returns:

  • (String)

    Name of the service to manage.



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

attribute :name

#service_dirString?

Returns directory svscan watches for services.

Returns:

  • (String, nil)

    directory svscan watches for services



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

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.



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

attribute :service_src

#state:started, ...

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:

  • (:started, :stopped, :restarted, :reloaded, :once, 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.



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

attribute :state