godleon.apt_mirror
- Python 3.0 or newer version
The variables that should be passed to this role and a brief description about them are as follows:
apt_mirror:
# where you are going to keep APT packages & metadata
dir: "/var/local-repo"
# where you are going to keep mirror logs
log_dir: "/tmp/apt-mirror-logs"
ubuntu:
enabled: true
# APT package source
source: "http://archive.ubuntu.com/ubuntu"
nthreads: 10
# Versions are needed to be synchronized to the local APT mirror
support_versions:
- name: trusty
# set to "true" if you need source code packages
mirror_source: true
- name: xenial
mirror_source: true
debian:
enabled: false
None
Including an example of how to use your role (for instance, with variables passed in as parameters) is always nice for users too:
- hosts: servers
roles:
- { role: godleon.apt_mirror }
MIT
Leon Tseng