Class: Ansible::Ruby::Modules::Apt
- Inherits:
-
Base
- Object
- Ansible::Ruby::Models::Base
- Base
- Ansible::Ruby::Modules::Apt
- Defined in:
- lib/ansible/ruby/modules/generated/packaging/os/apt.rb
Overview
Manages I(apt) packages (such as for Debian/Ubuntu).
Instance Method Summary collapse
-
#allow_unauthenticated ⇒ :yes, ...
Ignore if packages cannot be authenticated.
-
#autoclean ⇒ :yes, ...
If C(yes), cleans the local repository of retrieved package files that can no longer be downloaded.
-
#autoremove ⇒ :yes, ...
If C(yes), remove unused dependency packages for all module states except I(build-dep).
-
#cache_valid_time ⇒ Integer?
Update the apt cache if its older than the I(cache_valid_time).
-
#deb ⇒ String?
Path to a .deb package on the remote machine.,If :// in the path, ansible will attempt to download deb before installing.
-
#default_release ⇒ String?
Corresponds to the C(-t) option for I(apt) and sets pin priorities.
-
#dpkg_options ⇒ Array<String>, ...
Add dpkg options to apt command.
-
#force ⇒ :yes, ...
Corresponds to the C(–force-yes) to I(apt-get) and implies C(allow_unauthenticated: yes),This option will disable checking both the packages’ signatures and the certificates of the web servers they are downloaded from.,This option *is not* the equivalent of passing the C(-f) flag to I(apt-get) on the command line,**This is a destructive operation with the potential to destroy your system, and it should almost never be used.** Please also see C(man apt-get) for more information.
-
#force_apt_get ⇒ :yes, ...
Force usage of apt-get instead of aptitude.
-
#install_recommends ⇒ Symbol?
Corresponds to the C(–no-install-recommends) option for I(apt).
-
#name ⇒ String?
A list of package names, like C(foo), or package specifier with version, like C(foo=1.0).
-
#only_upgrade ⇒ :yes, ...
Only upgrade a package if it is already installed.
-
#purge ⇒ :yes, ...
Will force purging of configuration files if the module state is set to I(absent).
-
#state ⇒ :absent, ...
Indicates the desired package state.
-
#update_cache ⇒ :yes, ...
Run the equivalent of C(apt-get update) before the operation.
-
#upgrade ⇒ :dist, ...
If yes or safe, performs an aptitude safe-upgrade.,If full, performs an aptitude full-upgrade.,If dist, performs an apt-get dist-upgrade.,Note: This does not upgrade a specific package, use state=latest for that.,Note: Since 2.4, apt-get is used as a fall-back if aptitude is not present.
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
#allow_unauthenticated ⇒ :yes, ...
44 |
# File 'lib/ansible/ruby/modules/generated/packaging/os/apt.rb', line 44 attribute :allow_unauthenticated |
#autoclean ⇒ :yes, ...
64 |
# File 'lib/ansible/ruby/modules/generated/packaging/os/apt.rb', line 64 attribute :autoclean |
#autoremove ⇒ :yes, ...
60 |
# File 'lib/ansible/ruby/modules/generated/packaging/os/apt.rb', line 60 attribute :autoremove |
#cache_valid_time ⇒ Integer?
24 |
# File 'lib/ansible/ruby/modules/generated/packaging/os/apt.rb', line 24 attribute :cache_valid_time |
#deb ⇒ String?
56 |
# File 'lib/ansible/ruby/modules/generated/packaging/os/apt.rb', line 56 attribute :deb |
#default_release ⇒ String?
32 |
# File 'lib/ansible/ruby/modules/generated/packaging/os/apt.rb', line 32 attribute :default_release |
#dpkg_options ⇒ Array<String>, ...
52 |
# File 'lib/ansible/ruby/modules/generated/packaging/os/apt.rb', line 52 attribute :dpkg_options |
#force ⇒ :yes, ...
40 |
# File 'lib/ansible/ruby/modules/generated/packaging/os/apt.rb', line 40 attribute :force |
#force_apt_get ⇒ :yes, ...
72 |
# File 'lib/ansible/ruby/modules/generated/packaging/os/apt.rb', line 72 attribute :force_apt_get |
#install_recommends ⇒ Symbol?
36 |
# File 'lib/ansible/ruby/modules/generated/packaging/os/apt.rb', line 36 attribute :install_recommends |
#name ⇒ String?
12 |
# File 'lib/ansible/ruby/modules/generated/packaging/os/apt.rb', line 12 attribute :name |
#only_upgrade ⇒ :yes, ...
68 |
# File 'lib/ansible/ruby/modules/generated/packaging/os/apt.rb', line 68 attribute :only_upgrade |
#purge ⇒ :yes, ...
28 |
# File 'lib/ansible/ruby/modules/generated/packaging/os/apt.rb', line 28 attribute :purge |
#state ⇒ :absent, ...
16 |
# File 'lib/ansible/ruby/modules/generated/packaging/os/apt.rb', line 16 attribute :state |
#update_cache ⇒ :yes, ...
20 |
# File 'lib/ansible/ruby/modules/generated/packaging/os/apt.rb', line 20 attribute :update_cache |
#upgrade ⇒ :dist, ...
48 |
# File 'lib/ansible/ruby/modules/generated/packaging/os/apt.rb', line 48 attribute :upgrade |