Ansible Role mirror

This role installs and configures mirror.

Mandatory Requirements

If you use the mirror Playbook, this is automatically done for you.

Tags

Tag

What it does

mirror

Installs and configures mirror

mirror:configure

Deploys /etc/mirror.yml

Mandatory Role Variables

Variable

Description

mirror__reposync_repos

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

mirror__base_path

Directory under which all the repos will be placed. This directory should be served by a webserver.

'/var/www/html/reposync-repos'

mirror__timer_enabled

Enables or disables the mirror timer, analogous to systemctl enable/disable --now.

true

mirror__webserver_user

The user under which the webserver runs. Will be used to set the correct FACL entries so that both users can access the files.

'apache'

Example:

# optional
mirror__base_path: '/var/www/html/reposync-repos'
mirror__timer_enabled: true
mirror__webserver_user: 'nginx'

License

The Unlicense

Author Information

Linuxfabrik GmbH, Zurich