Class: Ansible::Ruby::Modules::Win_package

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

Overview

Installs or uninstalls a package

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, remove_existing_validations, #to_h, validates

Constructor Details

This class inherits a constructor from Ansible::Ruby::Models::Base

Instance Method Details

#argumentsObject?

Returns Any arguments the installer needs.

Returns:

  • (Object, nil)

    Any arguments the installer needs



23
# File 'lib/ansible/ruby/modules/generated/extras/windows/win_package.rb', line 23

attribute :arguments

#nameString?

Returns name of the package. Just for logging reasons, will use the value of path if name isn’t specified.

Returns:

  • (String, nil)

    name of the package. Just for logging reasons, will use the value of path if name isn’t specified



15
# File 'lib/ansible/ruby/modules/generated/extras/windows/win_package.rb', line 15

attribute :name

#pathString

Returns Location of the package to be installed (either on file system, network share or url).

Returns:

  • (String)

    Location of the package to be installed (either on file system, network share or url)



11
# File 'lib/ansible/ruby/modules/generated/extras/windows/win_package.rb', line 11

attribute :path

#product_idObject

Returns product id of the installed package (used for checking if already installed).

Returns:

  • (Object)

    product id of the installed package (used for checking if already installed)



19
# File 'lib/ansible/ruby/modules/generated/extras/windows/win_package.rb', line 19

attribute :product_id

#state:present, ...

Returns Install or Uninstall.

Returns:

  • (:present, :absent, nil)

    Install or Uninstall



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

attribute :state

#user_nameObject?

Returns Username of an account with access to the package if its located on a file share. Only needed if the winrm user doesn’t have access to the package. Also specify user_password for this to function properly.

Returns:

  • (Object, nil)

    Username of an account with access to the package if its located on a file share. Only needed if the winrm user doesn’t have access to the package. Also specify user_password for this to function properly.



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

attribute :user_name

#user_passwordObject?

Returns Password of an account with access to the package if its located on a file share. Only needed if the winrm user doesn’t have access to the package. Also specify user_name for this to function properly.

Returns:

  • (Object, nil)

    Password of an account with access to the package if its located on a file share. Only needed if the winrm user doesn’t have access to the package. Also specify user_name for this to function properly.



33
# File 'lib/ansible/ruby/modules/generated/extras/windows/win_package.rb', line 33

attribute :user_password