Class: Ansible::Ruby::Modules::Pacman

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

Overview

Manage packages with the I(pacman) package manager, which is used by Arch Linux and its variants.

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

#forceSymbol?

Returns When removing package - force remove package, without any checks. When update_cache - force redownload repo databases.

Returns:

  • (Symbol, nil)

    When removing package - force remove package, without any checks. When update_cache - force redownload repo databases.



24
# File 'lib/ansible/ruby/modules/generated/packaging/os/pacman.rb', line 24

attribute :force

#nameArray<String>, ...

Returns Name or list of names of the packages to install, upgrade, or remove.

Returns:

  • (Array<String>, String, nil)

    Name or list of names of the packages to install, upgrade, or remove.



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

attribute :name

#recurseSymbol?

Returns When removing a package, also remove its dependencies, provided that they are not required by other packages and were not explicitly installed by a user.

Returns:

  • (Symbol, nil)

    When removing a package, also remove its dependencies, provided that they are not required by other packages and were not explicitly installed by a user.



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

attribute :recurse

#state:absent, ...

Returns Desired state of the package.

Returns:

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

    Desired state of the package.



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

attribute :state

#update_cacheSymbol?

Returns Whether or not to refresh the master package lists. This can be run as part of a package installation or as a separate step.

Returns:

  • (Symbol, nil)

    Whether or not to refresh the master package lists. This can be run as part of a package installation or as a separate step.



28
# File 'lib/ansible/ruby/modules/generated/packaging/os/pacman.rb', line 28

attribute :update_cache

#upgradeSymbol?

Returns Whether or not to upgrade whole system.

Returns:

  • (Symbol, nil)

    Whether or not to upgrade whole system.



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

attribute :upgrade