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

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



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

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.



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

attribute :disable_recommends

#nameString

Returns package name or package specifier with version C(name) or C(name-1.0). You can also pass a url or a local path to a rpm file.

Returns:

  • (String)

    package name or package specifier with version C(name) or C(name-1.0). You can also pass a url or a local path to a rpm file.



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

attribute :name

#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.

Returns:

  • (:present, :latest, :absent, 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.



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

attribute :state

#type:package, ...

Returns The type of package to be operated on.

Returns:

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

    The type of package to be operated on.



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

attribute :type