Class: Ansible::Ruby::Modules::Win_nssm

Inherits:
Base show all
Defined in:
lib/ansible/ruby/modules/generated/extras/windows/win_nssm.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

#app_parametersHash?

Returns Parameters to be passed to the application when it starts.

Returns:

  • (Hash, nil)

    Parameters to be passed to the application when it starts



30
# File 'lib/ansible/ruby/modules/generated/extras/windows/win_nssm.rb', line 30

attribute :app_parameters

#applicationString?

Returns The application binary to run as a service,Specify this whenever the service may need to be installed (state: present, started, stopped, restarted),Note that the application name must look like the following, if the directory includes spaces:,nssm install service “c:\Program Files\app.exe\” “C:\Path with spaces\”,See commit 0b386fc1984ab74ee59b7bed14b7e8f57212c22b in the nssm.git project for more info (git.nssm.cc/?p=nssm.git;a=commit;h=0b386fc1984ab74ee59b7bed14b7e8f57212c22b).

Returns:

  • (String, nil)

    The application binary to run as a service,Specify this whenever the service may need to be installed (state: present, started, stopped, restarted),Note that the application name must look like the following, if the directory includes spaces:,nssm install service “c:\Program Files\app.exe\” “C:\Path with spaces\”,See commit 0b386fc1984ab74ee59b7bed14b7e8f57212c22b in the nssm.git project for more info (git.nssm.cc/?p=nssm.git;a=commit;h=0b386fc1984ab74ee59b7bed14b7e8f57212c22b)



18
# File 'lib/ansible/ruby/modules/generated/extras/windows/win_nssm.rb', line 18

attribute :application

#dependenciesArray<String>, ...

Returns Service dependencies that has to be started to trigger startup, separated by comma.

Returns:

  • (Array<String>, String, nil)

    Service dependencies that has to be started to trigger startup, separated by comma.



34
# File 'lib/ansible/ruby/modules/generated/extras/windows/win_nssm.rb', line 34

attribute :dependencies

#nameString

Returns Name of the service to operate on.

Returns:

  • (String)

    Name of the service to operate on



10
# File 'lib/ansible/ruby/modules/generated/extras/windows/win_nssm.rb', line 10

attribute :name

#passwordString?

Returns Password to be used for service startup.

Returns:

  • (String, nil)

    Password to be used for service startup



42
# File 'lib/ansible/ruby/modules/generated/extras/windows/win_nssm.rb', line 42

attribute :password

#start_mode:auto, ...

Returns If C(auto) is selected, the service will start at bootup. C(manual) means that the service will start only when another service needs it. C(disabled) means that the service will stay off, regardless if it is needed or not.

Returns:

  • (:auto, :manual, :disabled)

    If C(auto) is selected, the service will start at bootup. C(manual) means that the service will start only when another service needs it. C(disabled) means that the service will stay off, regardless if it is needed or not.



46
# File 'lib/ansible/ruby/modules/generated/extras/windows/win_nssm.rb', line 46

attribute :start_mode

#state:present, ...

Returns State of the service on the system,Note that NSSM actions like “pause”, “continue”, “rotate” do not fit the declarative style of ansible, so these should be implemented via the ansible command module.

Returns:

  • (:present, :started, :stopped, :restarted, :absent, nil)

    State of the service on the system,Note that NSSM actions like “pause”, “continue”, “rotate” do not fit the declarative style of ansible, so these should be implemented via the ansible command module



14
# File 'lib/ansible/ruby/modules/generated/extras/windows/win_nssm.rb', line 14

attribute :state

#stderr_fileString?

Returns Path to receive error output.

Returns:

  • (String, nil)

    Path to receive error output



26
# File 'lib/ansible/ruby/modules/generated/extras/windows/win_nssm.rb', line 26

attribute :stderr_file

#stdout_fileString?

Returns Path to receive output.

Returns:

  • (String, nil)

    Path to receive output



22
# File 'lib/ansible/ruby/modules/generated/extras/windows/win_nssm.rb', line 22

attribute :stdout_file

#userString?

Returns User to be used for service startup.

Returns:

  • (String, nil)

    User to be used for service startup



38
# File 'lib/ansible/ruby/modules/generated/extras/windows/win_nssm.rb', line 38

attribute :user