yum_repository

Collection: builtin

Full Name: parallax.builtin.yum_repository

Aliases: ansible.builtin.yum_repository, yum_repository

Synopsis

Manage yum repository

Parameters

NameTypeRequiredDefaultDescription
namestringyesUnique repository ID
statestringpresentState of the repo Choices: absent, present
asyncbooltrueIf set to yes Yum will download packages and metadata from this repo in parallel
bandwidthstringMaximum available network bandwidth in bytes/second
baseurllistURL to the directory where the yum repository’s ‘repodata’ directory lives
coststringRelative cost of accessing this repository
deltarpm_metadata_percentagestringWhen the relative size of deltarpm metadata vs pkgs is larger than this, deltarpm metadata is not downloaded
deltarpm_percentagestringWhen the relative size of delta vs pkg is larger than this, delta is not used
descriptionstringA human readable string describing the repository
enabledbooltrueThis tells yum whether or not use this repository
enablegroupsbooltrueDetermines whether yum will allow the use of package groups for this repository
excludelistList of packages to exclude from updates or installs
failovermethodstringroundrobinEither ‘roundrobin’ or ‘priority’ Choices: priority, roundrobin
filestringFile name without the .repo extension to save the repo in
gpgcakeystringA URL pointing to the ASCII-armored CA key file for the repository
gpgcheckboolfalseTells yum whether or not it should perform a GPG signature check on packages
gpgkeylistA URL pointing to the ASCII-armored GPG key file for the repository
http_cachingstringallDetermines how upstream HTTP caches are instructed to handle any HTTP downloads Choices: all, packages, none
includelistInclude external configuration file
includepkgslistList of packages you want to only use from a repository
ip_resolvestringwhateverDetermines how yum resolves host names Choices: 4, 6, IPv4, IPv6, whatever
keepaliveboolfalseThis tells yum whether or not HTTP/1.1 keepalive should be used with this repository
keepcachestring1Either ‘1’ or ‘0’ Choices: 0, 1
metadata_expirestring21600Time (in seconds) after which the metadata will expire
metadata_expire_filterstringread-only:presentFilter the metadata_expire time Choices: never, read-only:past, read-only:present, read-only:future
metalinkstringSpecifies a URL to a metalink file for the repomd.xml
mirrorliststringSpecifies a URL to a file containing a list of baseurls
mirrorlist_expirestringTime (in seconds) after which the mirrorlist locally cached will expire
passwordstringPassword to use with the username for basic authentication
prioritystring99Enforce ordered protection of repositories
protectboolfalseProtect packages from updates from other repositories
proxystringURL to the proxy server that yum should use
proxy_passwordstringPassword for this proxy
proxy_usernamestringUsername to use for proxy
repo_gpgcheckboolfalseThis tells yum whether or not it should perform a GPG signature check on the repodata
repofilestringFile to write the repository configuration to
retriesstring10Set the number of times any attempt to retrieve a file should retry before returning an error
s3_enabledboolfalseEnables support for S3 repositories
skip_if_unavailableboolfalseIf set to yes yum will continue running if this repository cannot be contacted
ssl_check_cert_permissionsboolfalseWhether yum should check the permissions on the paths for the certificates
sslcacertstringPath to the directory containing the databases of the certificate authorities
sslclientcertstringPath to the SSL client certificate yum should use to connect to repos/remote sites
sslclientkeystringPath to the SSL client key yum should use to connect to repos/remote sites
sslverifybooltrueDefines whether yum should verify SSL certificates/signatures
throttlestringEnable bandwidth throttling for downloads
timeoutstring30Number of seconds to wait for a connection before timing out
ui_repoid_varsstringWhen a repository id is displayed, append these yum variables to the string
usernamestringUsername to use for basic authentication to a repo or really any url

Example

- name: Example yum_repository task
  yum_repository:
    name: <your_name>