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

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

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



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

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.



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

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.



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

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.



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

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.



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

attribute :type