Class: Ansible::Ruby::Modules::Apk
- Inherits:
-
Base
- Object
- Ansible::Ruby::Models::Base
- Base
- Ansible::Ruby::Modules::Apk
- Defined in:
- lib/ansible/ruby/modules/generated/packaging/os/apk.rb
Overview
Manages I(apk) packages for Alpine Linux.
Instance Method Summary collapse
-
#available ⇒ :yes, ...
During upgrade, reset versioned world dependencies and change logic to prefer replacing or downgrading packages (instead of holding them) if the currently installed package is no longer available from any repository.
-
#name ⇒ Array<String>, ...
A package name, like C(foo), or multiple packages, like C(foo, bar).
-
#repository ⇒ String?
A package repository or multiple repositories.
-
#state ⇒ :present, ...
Indicates the desired package(s) state.,C(present) ensures the package(s) is/are present.,C(absent) ensures the package(s) is/are absent.,C(latest) ensures the package(s) is/are present and the latest version(s).
-
#update_cache ⇒ :yes, ...
Update repository indexes.
-
#upgrade ⇒ :yes, ...
Upgrade all installed packages to their latest version.
Methods inherited from Base
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
#available ⇒ :yes, ...
Returns During upgrade, reset versioned world dependencies and change logic to prefer replacing or downgrading packages (instead of holding them) if the currently installed package is no longer available from any repository.
12 |
# File 'lib/ansible/ruby/modules/generated/packaging/os/apk.rb', line 12 attribute :available |
#name ⇒ Array<String>, ...
Returns A package name, like C(foo), or multiple packages, like C(foo, bar).
16 |
# File 'lib/ansible/ruby/modules/generated/packaging/os/apk.rb', line 16 attribute :name |
#repository ⇒ String?
Returns A package repository or multiple repositories. Unlike with the underlying apk command, this list will override the system repositories rather than supplement them.
20 |
# File 'lib/ansible/ruby/modules/generated/packaging/os/apk.rb', line 20 attribute :repository |
#state ⇒ :present, ...
Returns Indicates the desired package(s) state.,C(present) ensures the package(s) is/are present.,C(absent) ensures the package(s) is/are absent.,C(latest) ensures the package(s) is/are present and the latest version(s).
24 |
# File 'lib/ansible/ruby/modules/generated/packaging/os/apk.rb', line 24 attribute :state |
#update_cache ⇒ :yes, ...
Returns Update repository indexes. Can be run with other steps or on it’s own.
28 |
# File 'lib/ansible/ruby/modules/generated/packaging/os/apk.rb', line 28 attribute :update_cache |
#upgrade ⇒ :yes, ...
Returns Upgrade all installed packages to their latest version.
32 |
# File 'lib/ansible/ruby/modules/generated/packaging/os/apk.rb', line 32 attribute :upgrade |