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

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

Constructor Details

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

Instance Method Details

#forceBoolean?

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

Returns:

  • (Boolean, nil)

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



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

attribute :force

#nameArray<String>, ...

Returns Name of the package to install, upgrade, or remove.

Returns:

  • (Array<String>, String, nil)

    Name of the package to install, upgrade, or remove.



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

attribute :name

#recurseBoolean?

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:

  • (Boolean, 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.



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

attribute :recurse

#state:present, ...

Returns Desired state of the package.

Returns:

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

    Desired state of the package.



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

attribute :state

#update_cacheBoolean?

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:

  • (Boolean, 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.



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

attribute :update_cache

#upgradeBoolean?

Returns Whether or not to upgrade whole system.

Returns:

  • (Boolean, nil)

    Whether or not to upgrade whole system



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

attribute :upgrade