Class: Ansible::Ruby::Modules::Yum
- Inherits:
-
Base
- Object
- Ansible::Ruby::Models::Base
- Base
- Ansible::Ruby::Modules::Yum
- Defined in:
- lib/ansible/ruby/modules/generated/core/packaging/os/yum.rb
Instance Method Summary collapse
-
#conf_file ⇒ Object?
The remote yum 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.
-
#exclude ⇒ Object?
Package name(s) to exclude when state=present, or latest.
-
#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) or C(installed), C(latest)), or remove (C(absent) or C(removed)) a package.
-
#update_cache ⇒ :yes, ...
Force updating the cache.
-
#validate_certs ⇒ :yes, ...
This only applies if using a https url as the source of the rpm.
Methods inherited from Base
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_file ⇒ Object?
Returns 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).
34 |
# File 'lib/ansible/ruby/modules/generated/core/packaging/os/yum.rb', line 34 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 “,”.
28 |
# File 'lib/ansible/ruby/modules/generated/core/packaging/os/yum.rb', line 28 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 “,”.
24 |
# File 'lib/ansible/ruby/modules/generated/core/packaging/os/yum.rb', line 24 attribute :enablerepo |
#exclude ⇒ Object?
Returns 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 |
#list ⇒ Object?
Returns 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 |
#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: 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.
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).
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).
42 |
# File 'lib/ansible/ruby/modules/generated/core/packaging/os/yum.rb', line 42 attribute :validate_certs |