Class: Ansible::Ruby::Modules::Zypper
- Inherits:
-
Base
- Object
- Ansible::Ruby::Models::Base
- Base
- Ansible::Ruby::Modules::Zypper
- 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
-
#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).
-
#extra_args ⇒ String?
Add additional options to C(zypper) command.,Options should be supplied in a single line as if given in the command line.
-
#extra_args_precommand ⇒ Object?
Add additional global target options to C(zypper).,Options should be supplied in a single line as if given in the command line.
-
#force ⇒ :yes, ...
Adds C(–force) option to I(zypper).
-
#name ⇒ 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).
-
#oldpackage ⇒ :yes, ...
Adds C(–oldpackage) option to I(zypper).
-
#state ⇒ :present, ...
C(present) will make sure the package is installed.
-
#type ⇒ :package, ...
The type of package to be operated on.
-
#update_cache ⇒ :yes, ...
Run the equivalent of C(zypper refresh) before the operation.
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).
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.
31 |
# File 'lib/ansible/ruby/modules/generated/packaging/os/zypper.rb', line 31 attribute :disable_recommends |
#extra_args ⇒ String?
Returns 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_precommand ⇒ Object?
Returns 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.
35 |
# File 'lib/ansible/ruby/modules/generated/packaging/os/zypper.rb', line 35 attribute :force |
#name ⇒ String
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.
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.
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(‘*’).
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.
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.
39 |
# File 'lib/ansible/ruby/modules/generated/packaging/os/zypper.rb', line 39 attribute :update_cache |