Ansible Role mirror
This role installs and configures mirror.
Mandatory Requirements
Install Python 3. This can be done using the linuxfabrik.lfops.python role.
Install
createrepo. This can be done using the linuxfabrik.lfops.apps role.Install
git. This can be done using the linuxfabrik.lfops.apps role.Install
yum-utils. This can be done using the linuxfabrik.lfops.yum_utils role.
If you use the mirror Playbook, this is automatically done for you.
Mandatory Role Variables
Variable |
Description |
|---|---|
|
A list of dictionaries containing RPM-based repositories which should be mirrored. Subkeys: Have a look at the project’s README |
Example:
# mandatory
mirror__reposync_repos:
- repoid: 'appstream'
relative_target_path: 'rocky/8/AppStream/x86_64/os/'
- repoid: 'baseos'
relative_target_path: 'rocky/8/BaseOS/x86_64/os/'
- repoid: 'extras'
relative_target_path: 'rocky/8/extras/x86_64/os/'
- repoid: 'powertools'
relative_target_path: 'rocky/8/PowerTools/x86_64/os/'
Optional Role Variables
Variable |
Description |
Default Value |
|---|---|---|
|
Directory under which all the repos will be placed. This directory should be served by a webserver. |
|
|
Enables or disables the mirror timer, analogous to |
|
|
The user under which the webserver runs. Will be used to set the correct FACL entries so that both users can access the files. |
|
Example:
# optional
mirror__base_path: '/var/www/html/reposync-repos'
mirror__timer_enabled: true
mirror__webserver_user: 'nginx'