Class: Ansible::Ruby::Modules::Package
- Inherits:
-
Base
- Object
- Ansible::Ruby::Models::Base
- Base
- Ansible::Ruby::Modules::Package
- Defined in:
- lib/ansible/ruby/modules/generated/packaging/os/package.rb
Overview
Installs, upgrade and removes packages using the underlying OS package manager. For Windows targets, use the M(win_package) module instead.
Instance Method Summary collapse
-
#name ⇒ String
Package name, or package specifier with version, like C(name-1.0).,Be aware that packages are not always named the same and this module will not ‘translate’ them per distro.
-
#state ⇒ String
Whether to install (C(present)), or remove (C(absent)) a package.
-
#use ⇒ String?
The required package manager module to use (yum, apt, etc).
Methods inherited from Base
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
#name ⇒ String
13 |
# File 'lib/ansible/ruby/modules/generated/packaging/os/package.rb', line 13 attribute :name |
#state ⇒ String
17 |
# File 'lib/ansible/ruby/modules/generated/packaging/os/package.rb', line 17 attribute :state |
#use ⇒ String?
21 |
# File 'lib/ansible/ruby/modules/generated/packaging/os/package.rb', line 21 attribute :use |