Class: Ansible::Ruby::Modules::Slackpkg

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

Overview

Manage binary packages for Slackware using ‘slackpkg’ which is available in versions after 12.2.

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>, String

Returns name of package to install/remove.

Returns:

  • (Array<String>, String)

    name of package to install/remove



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

attribute :name

#state:present, ...

Returns state of the package, you can use “installed” as an alias for C(present) and removed as one for c(absent).

Returns:

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

    state of the package, you can use “installed” as an alias for C(present) and removed as one for c(absent).



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

attribute :state

#update_cacheBoolean?

Returns update the package database first.

Returns:

  • (Boolean, nil)

    update the package database first



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

attribute :update_cache