Class: Ansible::Ruby::Modules::Dnf
- Inherits:
-
Base
- Object
- Ansible::Ruby::Models::Base
- Base
- Ansible::Ruby::Modules::Dnf
- Defined in:
- lib/ansible/ruby/modules/generated/extras/packaging/os/dnf.rb
Overview
Installs, upgrade, removes, and lists packages and groups with the I(dnf) package manager.
Instance Method Summary collapse
-
#conf_file ⇒ Object?
The remote dnf configuration file to use for the transaction.
-
#disable_gpg_check ⇒ :yes, ...
Whether to disable the GPG checking of signatures of packages being installed.
-
#disablerepo ⇒ Object?
I(Repoid) of repositories to disable for the install/update operation.
-
#enablerepo ⇒ String?
I(Repoid) of repositories to enable for the install/update operation.
-
#list ⇒ Object?
Various (non-idempotent) commands for usage with C(/usr/bin/ansible) and I(not) playbooks.
-
#name ⇒ String
Package name, or package specifier with version, like C(name-1.0).
-
#state ⇒ :present, ...
Whether to install (C(present), C(latest)), or remove (C(absent)) a package.
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
#conf_file ⇒ Object?
Returns The remote dnf configuration file to use for the transaction.
29 |
# File 'lib/ansible/ruby/modules/generated/extras/packaging/os/dnf.rb', line 29 attribute :conf_file |
#disable_gpg_check ⇒ :yes, ...
Returns Whether to disable the GPG checking of signatures of packages being installed. Has an effect only if state is I(present) or I(latest).
32 |
# File 'lib/ansible/ruby/modules/generated/extras/packaging/os/dnf.rb', line 32 attribute :disable_gpg_check |
#disablerepo ⇒ Object?
Returns I(Repoid) of repositories to disable for the install/update operation. These repos will not persist beyond the transaction. When specifying multiple repos, separate them with a “,”.
26 |
# File 'lib/ansible/ruby/modules/generated/extras/packaging/os/dnf.rb', line 26 attribute :disablerepo |
#enablerepo ⇒ String?
Returns I(Repoid) of repositories to enable for the install/update operation. These repos will not persist beyond the transaction. When specifying multiple repos, separate them with a “,”.
22 |
# File 'lib/ansible/ruby/modules/generated/extras/packaging/os/dnf.rb', line 22 attribute :enablerepo |
#list ⇒ Object?
Returns Various (non-idempotent) commands for usage with C(/usr/bin/ansible) and I(not) playbooks. See examples.
15 |
# File 'lib/ansible/ruby/modules/generated/extras/packaging/os/dnf.rb', line 15 attribute :list |
#name ⇒ String
Returns Package name, or package specifier with version, like C(name-1.0). When using state=latest, this can be ‘*’ which means run: dnf -y update. You can also pass a url or a local path to a rpm file.
11 |
# File 'lib/ansible/ruby/modules/generated/extras/packaging/os/dnf.rb', line 11 attribute :name |
#state ⇒ :present, ...
Returns Whether to install (C(present), C(latest)), or remove (C(absent)) a package.
18 |
# File 'lib/ansible/ruby/modules/generated/extras/packaging/os/dnf.rb', line 18 attribute :state |