Class: Ansible::Ruby::Modules::Yum

Inherits:
Base show all
Defined in:
lib/ansible/ruby/modules/generated/core/packaging/os/yum.rb

Instance Method Summary collapse

Methods inherited from Base

#to_h

Methods inherited from Ansible::Ruby::Models::Base

attr_options, attribute, #initialize, #to_h, validates

Constructor Details

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

Instance Method Details

#conf_fileObject?

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

Returns:

  • (Object, nil)

    The remote yum configuration file to use for the transaction.



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

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



34
# File 'lib/ansible/ruby/modules/generated/core/packaging/os/yum.rb', line 34

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



28
# File 'lib/ansible/ruby/modules/generated/core/packaging/os/yum.rb', line 28

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



24
# File 'lib/ansible/ruby/modules/generated/core/packaging/os/yum.rb', line 24

attribute :enablerepo

#excludeObject?

Returns Package name(s) to exclude when state=present, or latest.

Returns:

  • (Object, nil)

    Package name(s) to exclude when state=present, or latest



14
# File 'lib/ansible/ruby/modules/generated/core/packaging/os/yum.rb', line 14

attribute :exclude

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



17
# File 'lib/ansible/ruby/modules/generated/core/packaging/os/yum.rb', line 17

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: yum -y update. You can also pass a url or a local path to a rpm file (using state=present). To operate on several packages this can accept a comma separated list of packages or (as of 2.0) a list of packages.

Returns:

  • (String)

    Package name, or package specifier with version, like C(name-1.0). When using state=latest, this can be ‘*’ which means run: yum -y update. You can also pass a url or a local path to a rpm file (using state=present). To operate on several packages this can accept a comma separated list of packages or (as of 2.0) a list of packages.



10
# File 'lib/ansible/ruby/modules/generated/core/packaging/os/yum.rb', line 10

attribute :name

#state:present, ...

Returns Whether to install (C(present) or C(installed), C(latest)), or remove (C(absent) or C(removed)) a package.

Returns:

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

    Whether to install (C(present) or C(installed), C(latest)), or remove (C(absent) or C(removed)) a package.



20
# File 'lib/ansible/ruby/modules/generated/core/packaging/os/yum.rb', line 20

attribute :state

#update_cache:yes, ...

Returns Force updating the cache. Has an effect only if state is I(present) or I(latest).

Returns:

  • (:yes, :no, nil)

    Force updating the cache. Has an effect only if state is I(present) or I(latest).



38
# File 'lib/ansible/ruby/modules/generated/core/packaging/os/yum.rb', line 38

attribute :update_cache

#validate_certs:yes, ...

Returns This only applies if using a https url as the source of the rpm. e.g. for localinstall. If set to C(no), the SSL certificates will not be validated.,This should only set to C(no) used on personally controlled sites using self-signed certificates as it avoids verifying the source site.,Prior to 2.1 the code worked as if this was set to C(yes).

Returns:

  • (:yes, :no, nil)

    This only applies if using a https url as the source of the rpm. e.g. for localinstall. If set to C(no), the SSL certificates will not be validated.,This should only set to C(no) used on personally controlled sites using self-signed certificates as it avoids verifying the source site.,Prior to 2.1 the code worked as if this was set to C(yes).



42
# File 'lib/ansible/ruby/modules/generated/core/packaging/os/yum.rb', line 42

attribute :validate_certs