|
|
@ -21,9 +21,9 @@ description:
|
|
|
|
options:
|
|
|
|
options:
|
|
|
|
async:
|
|
|
|
async:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- If set to C(true) Yum will download packages and metadata from this
|
|
|
|
- If set to V(true) Yum will download packages and metadata from this
|
|
|
|
repo in parallel, if possible.
|
|
|
|
repo in parallel, if possible.
|
|
|
|
- In ansible-core 2.11, 2.12, and 2.13 the default value is C(true).
|
|
|
|
- In ansible-core 2.11, 2.12, and 2.13 the default value is V(true).
|
|
|
|
- This option has been deprecated in RHEL 8. If you're using one of the
|
|
|
|
- This option has been deprecated in RHEL 8. If you're using one of the
|
|
|
|
versions listed above, you can set this option to None to avoid passing an
|
|
|
|
versions listed above, you can set this option to None to avoid passing an
|
|
|
|
unknown configuration option.
|
|
|
|
unknown configuration option.
|
|
|
@ -31,10 +31,10 @@ options:
|
|
|
|
bandwidth:
|
|
|
|
bandwidth:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- Maximum available network bandwidth in bytes/second. Used with the
|
|
|
|
- Maximum available network bandwidth in bytes/second. Used with the
|
|
|
|
I(throttle) option.
|
|
|
|
O(throttle) option.
|
|
|
|
- If I(throttle) is a percentage and bandwidth is C(0) then bandwidth
|
|
|
|
- If O(throttle) is a percentage and bandwidth is V(0) then bandwidth
|
|
|
|
throttling will be disabled. If I(throttle) is expressed as a data rate
|
|
|
|
throttling will be disabled. If O(throttle) is expressed as a data rate
|
|
|
|
(bytes/sec) then this option is ignored. Default is C(0) (no bandwidth
|
|
|
|
(bytes/sec) then this option is ignored. Default is V(0) (no bandwidth
|
|
|
|
throttling).
|
|
|
|
throttling).
|
|
|
|
type: str
|
|
|
|
type: str
|
|
|
|
baseurl:
|
|
|
|
baseurl:
|
|
|
@ -42,8 +42,8 @@ options:
|
|
|
|
- URL to the directory where the yum repository's 'repodata' directory
|
|
|
|
- URL to the directory where the yum repository's 'repodata' directory
|
|
|
|
lives.
|
|
|
|
lives.
|
|
|
|
- It can also be a list of multiple URLs.
|
|
|
|
- It can also be a list of multiple URLs.
|
|
|
|
- This, the I(metalink) or I(mirrorlist) parameters are required if I(state) is set to
|
|
|
|
- This, the O(metalink) or O(mirrorlist) parameters are required if O(state) is set to
|
|
|
|
C(present).
|
|
|
|
V(present).
|
|
|
|
type: list
|
|
|
|
type: list
|
|
|
|
elements: str
|
|
|
|
elements: str
|
|
|
|
cost:
|
|
|
|
cost:
|
|
|
@ -55,36 +55,36 @@ options:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- When the relative size of deltarpm metadata vs pkgs is larger than
|
|
|
|
- When the relative size of deltarpm metadata vs pkgs is larger than
|
|
|
|
this, deltarpm metadata is not downloaded from the repo. Note that you
|
|
|
|
this, deltarpm metadata is not downloaded from the repo. Note that you
|
|
|
|
can give values over C(100), so C(200) means that the metadata is
|
|
|
|
can give values over V(100), so V(200) means that the metadata is
|
|
|
|
required to be half the size of the packages. Use C(0) to turn off
|
|
|
|
required to be half the size of the packages. Use V(0) to turn off
|
|
|
|
this check, and always download metadata.
|
|
|
|
this check, and always download metadata.
|
|
|
|
type: str
|
|
|
|
type: str
|
|
|
|
deltarpm_percentage:
|
|
|
|
deltarpm_percentage:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- When the relative size of delta vs pkg is larger than this, delta is
|
|
|
|
- When the relative size of delta vs pkg is larger than this, delta is
|
|
|
|
not used. Use C(0) to turn off delta rpm processing. Local repositories
|
|
|
|
not used. Use V(0) to turn off delta rpm processing. Local repositories
|
|
|
|
(with file:// I(baseurl)) have delta rpms turned off by default.
|
|
|
|
(with file://O(baseurl)) have delta rpms turned off by default.
|
|
|
|
type: str
|
|
|
|
type: str
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- A human readable string describing the repository. This option corresponds to the "name" property in the repo file.
|
|
|
|
- A human readable string describing the repository. This option corresponds to the "name" property in the repo file.
|
|
|
|
- This parameter is only required if I(state) is set to C(present).
|
|
|
|
- This parameter is only required if O(state) is set to V(present).
|
|
|
|
type: str
|
|
|
|
type: str
|
|
|
|
enabled:
|
|
|
|
enabled:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- This tells yum whether or not use this repository.
|
|
|
|
- This tells yum whether or not use this repository.
|
|
|
|
- Yum default value is C(true).
|
|
|
|
- Yum default value is V(true).
|
|
|
|
type: bool
|
|
|
|
type: bool
|
|
|
|
enablegroups:
|
|
|
|
enablegroups:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- Determines whether yum will allow the use of package groups for this
|
|
|
|
- Determines whether yum will allow the use of package groups for this
|
|
|
|
repository.
|
|
|
|
repository.
|
|
|
|
- Yum default value is C(true).
|
|
|
|
- Yum default value is V(true).
|
|
|
|
type: bool
|
|
|
|
type: bool
|
|
|
|
exclude:
|
|
|
|
exclude:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- List of packages to exclude from updates or installs. This should be a
|
|
|
|
- List of packages to exclude from updates or installs. This should be a
|
|
|
|
space separated list. Shell globs using wildcards (eg. C(*) and C(?))
|
|
|
|
space separated list. Shell globs using wildcards (for example V(*) and V(?))
|
|
|
|
are allowed.
|
|
|
|
are allowed.
|
|
|
|
- The list can also be a regular YAML array.
|
|
|
|
- The list can also be a regular YAML array.
|
|
|
|
type: list
|
|
|
|
type: list
|
|
|
@ -92,16 +92,16 @@ options:
|
|
|
|
failovermethod:
|
|
|
|
failovermethod:
|
|
|
|
choices: [roundrobin, priority]
|
|
|
|
choices: [roundrobin, priority]
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- C(roundrobin) randomly selects a URL out of the list of URLs to start
|
|
|
|
- V(roundrobin) randomly selects a URL out of the list of URLs to start
|
|
|
|
with and proceeds through each of them as it encounters a failure
|
|
|
|
with and proceeds through each of them as it encounters a failure
|
|
|
|
contacting the host.
|
|
|
|
contacting the host.
|
|
|
|
- C(priority) starts from the first I(baseurl) listed and reads through
|
|
|
|
- V(priority) starts from the first O(baseurl) listed and reads through
|
|
|
|
them sequentially.
|
|
|
|
them sequentially.
|
|
|
|
type: str
|
|
|
|
type: str
|
|
|
|
file:
|
|
|
|
file:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- File name without the C(.repo) extension to save the repo in. Defaults
|
|
|
|
- File name without the C(.repo) extension to save the repo in. Defaults
|
|
|
|
to the value of I(name).
|
|
|
|
to the value of O(name).
|
|
|
|
type: str
|
|
|
|
type: str
|
|
|
|
gpgcakey:
|
|
|
|
gpgcakey:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
@ -112,7 +112,7 @@ options:
|
|
|
|
- Tells yum whether or not it should perform a GPG signature check on
|
|
|
|
- Tells yum whether or not it should perform a GPG signature check on
|
|
|
|
packages.
|
|
|
|
packages.
|
|
|
|
- No default setting. If the value is not set, the system setting from
|
|
|
|
- No default setting. If the value is not set, the system setting from
|
|
|
|
C(/etc/yum.conf) or system default of C(false) will be used.
|
|
|
|
C(/etc/yum.conf) or system default of V(false) will be used.
|
|
|
|
type: bool
|
|
|
|
type: bool
|
|
|
|
gpgkey:
|
|
|
|
gpgkey:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
@ -123,31 +123,31 @@ options:
|
|
|
|
module_hotfixes:
|
|
|
|
module_hotfixes:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- Disable module RPM filtering and make all RPMs from the repository
|
|
|
|
- Disable module RPM filtering and make all RPMs from the repository
|
|
|
|
available. The default is C(None).
|
|
|
|
available. The default is V(None).
|
|
|
|
version_added: '2.11'
|
|
|
|
version_added: '2.11'
|
|
|
|
type: bool
|
|
|
|
type: bool
|
|
|
|
http_caching:
|
|
|
|
http_caching:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- Determines how upstream HTTP caches are instructed to handle any HTTP
|
|
|
|
- Determines how upstream HTTP caches are instructed to handle any HTTP
|
|
|
|
downloads that Yum does.
|
|
|
|
downloads that Yum does.
|
|
|
|
- C(all) means that all HTTP downloads should be cached.
|
|
|
|
- V(all) means that all HTTP downloads should be cached.
|
|
|
|
- C(packages) means that only RPM package downloads should be cached (but
|
|
|
|
- V(packages) means that only RPM package downloads should be cached (but
|
|
|
|
not repository metadata downloads).
|
|
|
|
not repository metadata downloads).
|
|
|
|
- C(none) means that no HTTP downloads should be cached.
|
|
|
|
- V(none) means that no HTTP downloads should be cached.
|
|
|
|
choices: [all, packages, none]
|
|
|
|
choices: [all, packages, none]
|
|
|
|
type: str
|
|
|
|
type: str
|
|
|
|
include:
|
|
|
|
include:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- Include external configuration file. Both, local path and URL is
|
|
|
|
- Include external configuration file. Both, local path and URL is
|
|
|
|
supported. Configuration file will be inserted at the position of the
|
|
|
|
supported. Configuration file will be inserted at the position of the
|
|
|
|
I(include=) line. Included files may contain further include lines.
|
|
|
|
C(include=) line. Included files may contain further include lines.
|
|
|
|
Yum will abort with an error if an inclusion loop is detected.
|
|
|
|
Yum will abort with an error if an inclusion loop is detected.
|
|
|
|
type: str
|
|
|
|
type: str
|
|
|
|
includepkgs:
|
|
|
|
includepkgs:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- List of packages you want to only use from a repository. This should be
|
|
|
|
- List of packages you want to only use from a repository. This should be
|
|
|
|
a space separated list. Shell globs using wildcards (eg. C(*) and C(?))
|
|
|
|
a space separated list. Shell globs using wildcards (for example V(*) and V(?))
|
|
|
|
are allowed. Substitution variables (e.g. C($releasever)) are honored
|
|
|
|
are allowed. Substitution variables (for example V($releasever)) are honored
|
|
|
|
here.
|
|
|
|
here.
|
|
|
|
- The list can also be a regular YAML array.
|
|
|
|
- The list can also be a regular YAML array.
|
|
|
|
type: list
|
|
|
|
type: list
|
|
|
@ -155,8 +155,8 @@ options:
|
|
|
|
ip_resolve:
|
|
|
|
ip_resolve:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- Determines how yum resolves host names.
|
|
|
|
- Determines how yum resolves host names.
|
|
|
|
- C(4) or C(IPv4) - resolve to IPv4 addresses only.
|
|
|
|
- V(4) or V(IPv4) - resolve to IPv4 addresses only.
|
|
|
|
- C(6) or C(IPv6) - resolve to IPv6 addresses only.
|
|
|
|
- V(6) or V(IPv6) - resolve to IPv6 addresses only.
|
|
|
|
choices: ['4', '6', IPv4, IPv6, whatever]
|
|
|
|
choices: ['4', '6', IPv4, IPv6, whatever]
|
|
|
|
type: str
|
|
|
|
type: str
|
|
|
|
keepalive:
|
|
|
|
keepalive:
|
|
|
@ -167,7 +167,7 @@ options:
|
|
|
|
type: bool
|
|
|
|
type: bool
|
|
|
|
keepcache:
|
|
|
|
keepcache:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- Either C(1) or C(0). Determines whether or not yum keeps the cache of
|
|
|
|
- Either V(1) or V(0). Determines whether or not yum keeps the cache of
|
|
|
|
headers and packages after successful installation.
|
|
|
|
headers and packages after successful installation.
|
|
|
|
choices: ['0', '1']
|
|
|
|
choices: ['0', '1']
|
|
|
|
type: str
|
|
|
|
type: str
|
|
|
@ -178,21 +178,21 @@ options:
|
|
|
|
type: str
|
|
|
|
type: str
|
|
|
|
metadata_expire_filter:
|
|
|
|
metadata_expire_filter:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- Filter the I(metadata_expire) time, allowing a trade of speed for
|
|
|
|
- Filter the O(metadata_expire) time, allowing a trade of speed for
|
|
|
|
accuracy if a command doesn't require it. Each yum command can specify
|
|
|
|
accuracy if a command doesn't require it. Each yum command can specify
|
|
|
|
that it requires a certain level of timeliness quality from the remote
|
|
|
|
that it requires a certain level of timeliness quality from the remote
|
|
|
|
repos. from "I'm about to install/upgrade, so this better be current"
|
|
|
|
repos. from "I'm about to install/upgrade, so this better be current"
|
|
|
|
to "Anything that's available is good enough".
|
|
|
|
to "Anything that's available is good enough".
|
|
|
|
- C(never) - Nothing is filtered, always obey I(metadata_expire).
|
|
|
|
- V(never) - Nothing is filtered, always obey O(metadata_expire).
|
|
|
|
- C(read-only:past) - Commands that only care about past information are
|
|
|
|
- V(read-only:past) - Commands that only care about past information are
|
|
|
|
filtered from metadata expiring. Eg. I(yum history) info (if history
|
|
|
|
filtered from metadata expiring. Eg. C(yum history) info (if history
|
|
|
|
needs to lookup anything about a previous transaction, then by
|
|
|
|
needs to lookup anything about a previous transaction, then by
|
|
|
|
definition the remote package was available in the past).
|
|
|
|
definition the remote package was available in the past).
|
|
|
|
- C(read-only:present) - Commands that are balanced between past and
|
|
|
|
- V(read-only:present) - Commands that are balanced between past and
|
|
|
|
future. Eg. I(yum list yum).
|
|
|
|
future. Eg. C(yum list yum).
|
|
|
|
- C(read-only:future) - Commands that are likely to result in running
|
|
|
|
- V(read-only:future) - Commands that are likely to result in running
|
|
|
|
other commands which will require the latest metadata. Eg.
|
|
|
|
other commands which will require the latest metadata. Eg.
|
|
|
|
I(yum check-update).
|
|
|
|
C(yum check-update).
|
|
|
|
- Note that this option does not override "yum clean expire-cache".
|
|
|
|
- Note that this option does not override "yum clean expire-cache".
|
|
|
|
choices: [never, 'read-only:past', 'read-only:present', 'read-only:future']
|
|
|
|
choices: [never, 'read-only:past', 'read-only:present', 'read-only:future']
|
|
|
|
type: str
|
|
|
|
type: str
|
|
|
@ -200,15 +200,15 @@ options:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- Specifies a URL to a metalink file for the repomd.xml, a list of
|
|
|
|
- Specifies a URL to a metalink file for the repomd.xml, a list of
|
|
|
|
mirrors for the entire repository are generated by converting the
|
|
|
|
mirrors for the entire repository are generated by converting the
|
|
|
|
mirrors for the repomd.xml file to a I(baseurl).
|
|
|
|
mirrors for the repomd.xml file to a O(baseurl).
|
|
|
|
- This, the I(baseurl) or I(mirrorlist) parameters are required if I(state) is set to
|
|
|
|
- This, the O(baseurl) or O(mirrorlist) parameters are required if O(state) is set to
|
|
|
|
C(present).
|
|
|
|
V(present).
|
|
|
|
type: str
|
|
|
|
type: str
|
|
|
|
mirrorlist:
|
|
|
|
mirrorlist:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- Specifies a URL to a file containing a list of baseurls.
|
|
|
|
- Specifies a URL to a file containing a list of baseurls.
|
|
|
|
- This, the I(baseurl) or I(metalink) parameters are required if I(state) is set to
|
|
|
|
- This, the O(baseurl) or O(metalink) parameters are required if O(state) is set to
|
|
|
|
C(present).
|
|
|
|
V(present).
|
|
|
|
type: str
|
|
|
|
type: str
|
|
|
|
mirrorlist_expire:
|
|
|
|
mirrorlist_expire:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
@ -219,8 +219,8 @@ options:
|
|
|
|
name:
|
|
|
|
name:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- Unique repository ID. This option builds the section name of the repository in the repo file.
|
|
|
|
- Unique repository ID. This option builds the section name of the repository in the repo file.
|
|
|
|
- This parameter is only required if I(state) is set to C(present) or
|
|
|
|
- This parameter is only required if O(state) is set to V(present) or
|
|
|
|
C(absent).
|
|
|
|
V(absent).
|
|
|
|
type: str
|
|
|
|
type: str
|
|
|
|
required: true
|
|
|
|
required: true
|
|
|
|
password:
|
|
|
|
password:
|
|
|
@ -239,7 +239,7 @@ options:
|
|
|
|
type: bool
|
|
|
|
type: bool
|
|
|
|
proxy:
|
|
|
|
proxy:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- URL to the proxy server that yum should use. Set to C(_none_) to
|
|
|
|
- URL to the proxy server that yum should use. Set to V(_none_) to
|
|
|
|
disable the global proxy setting.
|
|
|
|
disable the global proxy setting.
|
|
|
|
type: str
|
|
|
|
type: str
|
|
|
|
proxy_password:
|
|
|
|
proxy_password:
|
|
|
@ -263,7 +263,7 @@ options:
|
|
|
|
retries:
|
|
|
|
retries:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- Set the number of times any attempt to retrieve a file should retry
|
|
|
|
- Set the number of times any attempt to retrieve a file should retry
|
|
|
|
before returning an error. Setting this to C(0) makes yum try forever.
|
|
|
|
before returning an error. Setting this to V(0) makes yum try forever.
|
|
|
|
type: str
|
|
|
|
type: str
|
|
|
|
s3_enabled:
|
|
|
|
s3_enabled:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
@ -272,7 +272,7 @@ options:
|
|
|
|
type: bool
|
|
|
|
type: bool
|
|
|
|
skip_if_unavailable:
|
|
|
|
skip_if_unavailable:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- If set to C(true) yum will continue running if this repository cannot be
|
|
|
|
- If set to V(true) yum will continue running if this repository cannot be
|
|
|
|
contacted for any reason. This should be set carefully as all repos are
|
|
|
|
contacted for any reason. This should be set carefully as all repos are
|
|
|
|
consulted for any given command.
|
|
|
|
consulted for any given command.
|
|
|
|
type: bool
|
|
|
|
type: bool
|
|
|
@ -281,7 +281,7 @@ options:
|
|
|
|
- Whether yum should check the permissions on the paths for the
|
|
|
|
- Whether yum should check the permissions on the paths for the
|
|
|
|
certificates on the repository (both remote and local).
|
|
|
|
certificates on the repository (both remote and local).
|
|
|
|
- If we can't read any of the files then yum will force
|
|
|
|
- If we can't read any of the files then yum will force
|
|
|
|
I(skip_if_unavailable) to be C(true). This is most useful for non-root
|
|
|
|
O(skip_if_unavailable) to be V(true). This is most useful for non-root
|
|
|
|
processes which use yum on repos that have client cert files which are
|
|
|
|
processes which use yum on repos that have client cert files which are
|
|
|
|
readable only by root.
|
|
|
|
readable only by root.
|
|
|
|
type: bool
|
|
|
|
type: bool
|
|
|
@ -327,7 +327,7 @@ options:
|
|
|
|
ui_repoid_vars:
|
|
|
|
ui_repoid_vars:
|
|
|
|
description:
|
|
|
|
description:
|
|
|
|
- When a repository id is displayed, append these yum variables to the
|
|
|
|
- When a repository id is displayed, append these yum variables to the
|
|
|
|
string if they are used in the I(baseurl)/etc. Variables are appended
|
|
|
|
string if they are used in the O(baseurl)/etc. Variables are appended
|
|
|
|
in the order listed (and found).
|
|
|
|
in the order listed (and found).
|
|
|
|
type: str
|
|
|
|
type: str
|
|
|
|
username:
|
|
|
|
username:
|
|
|
@ -353,7 +353,7 @@ notes:
|
|
|
|
- The repo file will be automatically deleted if it contains no repository.
|
|
|
|
- The repo file will be automatically deleted if it contains no repository.
|
|
|
|
- When removing a repository, beware that the metadata cache may still remain
|
|
|
|
- When removing a repository, beware that the metadata cache may still remain
|
|
|
|
on disk until you run C(yum clean all). Use a notification handler for this.
|
|
|
|
on disk until you run C(yum clean all). Use a notification handler for this.
|
|
|
|
- "The C(params) parameter was removed in Ansible 2.5 due to circumventing Ansible's parameter
|
|
|
|
- "The O(ignore:params) parameter was removed in Ansible 2.5 due to circumventing Ansible's parameter
|
|
|
|
handling"
|
|
|
|
handling"
|
|
|
|
'''
|
|
|
|
'''
|
|
|
|
|
|
|
|
|
|
|
|