Class: Ansible::Ruby::Modules::Zypper
- Inherits:
-
Base
- Object
- Ansible::Ruby::Models::Base
- Base
- Ansible::Ruby::Modules::Zypper
- 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
-
#disable_gpg_check ⇒ :yes, ...
Whether to disable to GPG signature checking of the package signature being installed.
-
#disable_recommends ⇒ :yes, ...
Corresponds to the C(–no-recommends) option for I(zypper).
-
#name ⇒ String
Package name or package specifier with version C(name) or C(name-1.0).
-
#state ⇒ :present, ...
C(present) will make sure the package is installed.
-
#type ⇒ :package, ...
The type of package to be operated on.
Methods inherited from Base
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).
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.
27 |
# File 'lib/ansible/ruby/modules/generated/extras/packaging/os/zypper.rb', line 27 attribute :disable_recommends |
#name ⇒ String
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.
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.
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.
19 |
# File 'lib/ansible/ruby/modules/generated/extras/packaging/os/zypper.rb', line 19 attribute :type |