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

Inherits:
Base show all
Defined in:
lib/ansible/ruby/modules/generated/extras/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, #initialize, remove_existing_validations, #to_h, validates

Constructor Details

This class inherits a constructor from Ansible::Ruby::Models::Base

Instance Method Details

#nameArray<String>, ...

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

Returns:

  • (Array<String>, String, nil)

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



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

attribute :name

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



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

attribute :state

#update_cacheBoolean?

Returns Update repository indexes. Can be run with other steps or on it’s own.

Returns:

  • (Boolean, nil)

    Update repository indexes. Can be run with other steps or on it’s own.



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

attribute :update_cache

#upgradeBoolean?

Returns Upgrade all installed packages to their latest version.

Returns:

  • (Boolean, nil)

    Upgrade all installed packages to their latest version.



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

attribute :upgrade