Class: Ansible::Ruby::Modules::Zypper

Inherits:
Base show all
Defined in:
lib/ansible/ruby/modules/generated/packaging/os/zypper.rb

Overview

Manage packages on SUSE and openSUSE using the zypper and rpm tools.

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

#disable_gpg_check:yes, ...

Returns Whether to disable to GPG signature checking of the package signature being installed. Has an effect only if state is I(present) or I(latest).

Returns:

  • (:yes, :no, nil)

    Whether to disable to GPG signature checking of the package signature being installed. Has an effect only if state is I(present) or I(latest).



27
# File 'lib/ansible/ruby/modules/generated/packaging/os/zypper.rb', line 27

attribute :disable_gpg_check

#disable_recommends:yes, ...

Returns Corresponds to the C(–no-recommends) option for I(zypper). Default behavior (C(yes)) modifies zypper’s default behavior; C(no) does install recommended packages.

Returns:

  • (:yes, :no, nil)

    Corresponds to the C(–no-recommends) option for I(zypper). Default behavior (C(yes)) modifies zypper’s default behavior; C(no) does install recommended packages.



31
# File 'lib/ansible/ruby/modules/generated/packaging/os/zypper.rb', line 31

attribute :disable_recommends

#extra_argsString?

Returns Add additional options to C(zypper) command.,Options should be supplied in a single line as if given in the command line.

Returns:

  • (String, nil)

    Add additional options to C(zypper) command.,Options should be supplied in a single line as if given in the command line.



47
# File 'lib/ansible/ruby/modules/generated/packaging/os/zypper.rb', line 47

attribute :extra_args

#extra_args_precommandObject?

Returns Add additional global target options to C(zypper).,Options should be supplied in a single line as if given in the command line.

Returns:

  • (Object, nil)

    Add additional global target options to C(zypper).,Options should be supplied in a single line as if given in the command line.



24
# File 'lib/ansible/ruby/modules/generated/packaging/os/zypper.rb', line 24

attribute :extra_args_precommand

#force:yes, ...

Returns Adds C(–force) option to I(zypper). Allows to downgrade packages and change vendor or architecture.

Returns:

  • (:yes, :no, nil)

    Adds C(–force) option to I(zypper). Allows to downgrade packages and change vendor or architecture.



35
# File 'lib/ansible/ruby/modules/generated/packaging/os/zypper.rb', line 35

attribute :force

#nameString

Returns Package name C(name) or package specifier or a list of either.,Can include a version like C(name=1.0), C(name>3.4) or C(name<=2.7). If a version is given, C(oldpackage) is implied and zypper is allowed to update the package within the version range given.,You can also pass a url or a local path to a rpm file.,When using state=latest, this can be ‘*’, which updates all installed packages.

Returns:

  • (String)

    Package name C(name) or package specifier or a list of either.,Can include a version like C(name=1.0), C(name>3.4) or C(name<=2.7). If a version is given, C(oldpackage) is implied and zypper is allowed to update the package within the version range given.,You can also pass a url or a local path to a rpm file.,When using state=latest, this can be ‘*’, which updates all installed packages.



12
# File 'lib/ansible/ruby/modules/generated/packaging/os/zypper.rb', line 12

attribute :name

#oldpackage:yes, ...

Returns Adds C(–oldpackage) option to I(zypper). Allows to downgrade packages with less side-effects than force. This is implied as soon as a version is specified as part of the package name.

Returns:

  • (:yes, :no, nil)

    Adds C(–oldpackage) option to I(zypper). Allows to downgrade packages with less side-effects than force. This is implied as soon as a version is specified as part of the package name.



43
# File 'lib/ansible/ruby/modules/generated/packaging/os/zypper.rb', line 43

attribute :oldpackage

#state:present, ...

Returns C(present) will make sure the package is installed. C(latest) will make sure the latest version of the package is installed. C(absent) will make sure the specified package is not installed. C(dist-upgrade) will make sure the latest version of all installed packages from all enabled repositories is installed.,When using C(dist-upgrade), I(name) should be C(‘*’).

Returns:

  • (:present, :latest, :absent, :"dist-upgrade", nil)

    C(present) will make sure the package is installed. C(latest) will make sure the latest version of the package is installed. C(absent) will make sure the specified package is not installed. C(dist-upgrade) will make sure the latest version of all installed packages from all enabled repositories is installed.,When using C(dist-upgrade), I(name) should be C(‘*’).



16
# File 'lib/ansible/ruby/modules/generated/packaging/os/zypper.rb', line 16

attribute :state

#type:package, ...

Returns The type of package to be operated on.

Returns:

  • (:package, :patch, :pattern, :product, :srcpackage, :application, nil)

    The type of package to be operated on.



20
# File 'lib/ansible/ruby/modules/generated/packaging/os/zypper.rb', line 20

attribute :type

#update_cache:yes, ...

Returns Run the equivalent of C(zypper refresh) before the operation. Disabled in check mode.

Returns:

  • (:yes, :no, nil)

    Run the equivalent of C(zypper refresh) before the operation. Disabled in check mode.



39
# File 'lib/ansible/ruby/modules/generated/packaging/os/zypper.rb', line 39

attribute :update_cache