adfinis.pkg_mirror
ansible.pkg_mirror
Manage system package sources
Requirements
-
Role Variables
pkg_mirror_gpgkey_url: '<gpg url>' # URL for the GPG key
pkg_mirror_gpg_directory: '<apt trusted gpg directory>' # Directory for trusted GPG keys
pkg_mirror_sources_file: /etc/apt/sources.list.d/<filename>.list # File to store sources
pkg_mirror_url_list_debian: # Debian repository configuration
- 'deb <repo url>/{{ ansible_distribution | lower }}/ {{ ansible_distribution_release }} main'
pkg_mirror_auth_entries:
- auth_machine: <repo hostname> # Hostname for authorization
auth_login: <repo username> # Username for authorization
auth_password: <repo password> # Password for authorization
pkg_mirror_url_list_redhat: # RedHat repository configuration
- name: '<repo name>' # Name of the repository
description: '<repo description>' # Description of the repository
baseurl: '<repo url>' # URL for the repository
gpgcheck: yes # Enable GPG check
gpgkey: '<gpg url>' # URL for the GPG key
username: '<basic auth user>' # Basic auth user
password: '<basic auth pass>' # Basic auth password
pkg_mirror_url_list_suse: # SUSE repository configuration
- name: '<repo name>' # Name of the repository
description: '<repo description>' # Description of the repository
repo: '<repo url>' # URL for the repository
Dependencies
-
Example Playbook
This is an example of how to use the role, showing how to pass variables as parameters:
- hosts: servers
roles:
- { role: adfinis.pkg_mirror }
License
Author Information
The pkg_mirror role was created by: