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

Inherits:
Base show all
Defined in:
lib/ansible/ruby/modules/generated/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, fix_inclusion, #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



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

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



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

attribute :state

#update_cacheSymbol?

Returns update the package database first.

Returns:

  • (Symbol, nil)

    update the package database first



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

attribute :update_cache