blob: aed46ab5026ca632098ff6c5b38a0391831f691d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
Yum
===
Description
-----------
The `yum` role is used to add a local RPM repository as a package source.
Repository names are configured in the [vars file](vars/main.yml).
It should be used in conjunction with local Yum server built using the
[yum\_mirror](../yum_mirror/) role.
There is one special case hardcoded: enabling the `epel` repository will always
enable the `rocky-powertools` or `rocky-crb` repo as well.
Variables
---------
This role **accepts** the following variables:
Variable | Default | Description
---------------------------------|-----------|------------
`yum_host` | | Hostname of the local Yum server
`yum_add_repositories` | | List of repository names to enable
Usage
-----
Example playbook:
````yaml
- name: enable extra yum repositories
hosts: linux_desktops
roles:
- role: yum
yum_repositories:
- epel
- rpmfusion-free
- rpmfusion-free-tainted
- rpmfusion-nonfree
- rpmfusion-nonfree-tainted
````
|