Class: Ansible::Ruby::Modules::Apk

Inherits:
Base show all
Defined in:
lib/ansible/ruby/modules/generated/packaging/os/apk.rb

Overview

Manages I(apk) packages for Alpine Linux.

Instance Method Summary collapse

Methods inherited from Base

#ansible_name, #to_h

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.

Returns:

  • (:yes, :no, nil)

    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

#nameArray<String>, ...

Returns A package name, like C(foo), or multiple packages, like C(foo, bar).

Returns:

  • (Array<String>, String, nil)

    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

#repositoryString?

Returns A package repository or multiple repositories. Unlike with the underlying apk command, this list will override the system repositories rather than supplement them.

Returns:

  • (String, nil)

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

Returns:

  • (:present, :absent, :latest, nil)

    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.

Returns:

  • (:yes, :no, nil)

    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.

Returns:

  • (:yes, :no, nil)

    Upgrade all installed packages to their latest version.



32
# File 'lib/ansible/ruby/modules/generated/packaging/os/apk.rb', line 32

attribute :upgrade