Class: Ansible::Ruby::Modules::Win_chocolatey

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

Overview

Installs packages using Chocolatey (chocolatey.org/). If Chocolatey is missing from the system, the module will install it. List of packages can be found at chocolatey.org/packages

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

#forceBoolean?

Returns Forces install of the package (even if it already exists). Using Force will cause ansible to always report that a change was made.

Returns:

  • (Boolean, nil)

    Forces install of the package (even if it already exists). Using Force will cause ansible to always report that a change was made



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

attribute :force

#ignore_dependenciesBoolean?

Returns Ignore dependencies, only install/upgrade the package itself.

Returns:

  • (Boolean, nil)

    Ignore dependencies, only install/upgrade the package itself



39
# File 'lib/ansible/ruby/modules/generated/extras/windows/win_chocolatey.rb', line 39

attribute :ignore_dependencies

#install_argsObject?

Returns Arguments to pass to the native installer.

Returns:

  • (Object, nil)

    Arguments to pass to the native installer



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

attribute :install_args

#nameObject

Returns Name of the package to be installed.

Returns:

  • (Object)

    Name of the package to be installed



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

attribute :name

#paramsObject?

Returns Parameters to pass to the package.

Returns:

  • (Object, nil)

    Parameters to pass to the package



36
# File 'lib/ansible/ruby/modules/generated/extras/windows/win_chocolatey.rb', line 36

attribute :params

#sourceObject?

Returns Specify source rather than using default chocolatey repository.

Returns:

  • (Object, nil)

    Specify source rather than using default chocolatey repository



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

attribute :source

#state:present, ...

Returns State of the package on the system.

Returns:

  • (:present, :absent, nil)

    State of the package on the system



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

attribute :state

#upgradeBoolean?

Returns If package is already installed it, try to upgrade to the latest version or to the specified version.

Returns:

  • (Boolean, nil)

    If package is already installed it, try to upgrade to the latest version or to the specified version



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

attribute :upgrade

#versionObject?

Returns Specific version of the package to be installed,Ignored when state == ‘absent’.

Returns:

  • (Object, nil)

    Specific version of the package to be installed,Ignored when state == ‘absent’



27
# File 'lib/ansible/ruby/modules/generated/extras/windows/win_chocolatey.rb', line 27

attribute :version