godleon.apt_mirror
Role Name
godleon.apt_mirror
Requirements
Software
- Python 3.0 or a newer version
Role Variables
Here are the variables you need to provide for this role, along with a short explanation:
apt_mirror:
# Directory for APT packages and metadata
dir: "/var/local-repo"
# Directory for mirror logs
log_dir: "/tmp/apt-mirror-logs"
ubuntu:
enabled: true
# APT package source
source: "http://archive.ubuntu.com/ubuntu"
nthreads: 10
# Versions to be synchronized with the local APT mirror
support_versions:
- name: trusty
# Set to "true" if you want source code packages
mirror_source: true
- name: xenial
mirror_source: true
debian:
enabled: false
Dependencies
None
Example Playbook
Here’s an example of how to use this role (you can pass in variables as parameters):
- hosts: servers
roles:
- { role: godleon.apt_mirror }
License
MIT
Author Information
Leon Tseng
References
Informazioni sul progetto
Configure a local APT mirror of Ubuntu OS (Debian maybe will be support later)
Installa
ansible-galaxy install godleon.apt_mirror
Licenza
mit
Download
146
Proprietario