Class: Ansible::Ruby::Modules::Dnf

Inherits:
Base show all
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

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

#conf_fileObject?

Returns The remote dnf configuration file to use for the transaction.

Returns:

  • (Object, nil)

    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).

Returns:

  • (:yes, :no, nil)

    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

#disablerepoObject?

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 “,”.

Returns:

  • (Object, nil)

    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

#enablerepoString?

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 “,”.

Returns:

  • (String, nil)

    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

#listObject?

Returns Various (non-idempotent) commands for usage with C(/usr/bin/ansible) and I(not) playbooks. See examples.

Returns:

  • (Object, nil)

    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

#nameString

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.

Returns:

  • (String)

    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.

Returns:

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

    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