mirror of
https://github.com/de-it-krachten/ansible-role-apt_mirror
synced 2026-05-14 11:41:43 +00:00
No description
- Jinja 100%
|
|
||
|---|---|---|
| .github/workflows | ||
| defaults | ||
| meta | ||
| molecule/default | ||
| tasks | ||
| templates | ||
| .ansible-lint | ||
| .cicd | ||
| .cicd.overwrite | ||
| .collections | ||
| .gitignore | ||
| .releaserc.yml | ||
| .roles | ||
| .yamllint | ||
| CHANGELOG.md | ||
| README.md | ||
ansible-role-apt_mirror
APT mirror setup for Ubuntu
Dependencies
Roles
None
Collections
None
Platforms
Supported platforms
- Ubuntu 20.04 LTS
- Ubuntu 22.04 LTS
- Ubuntu 24.04 LTS
Note: 1 : no automated testing is performed on these platforms
Role Variables
defaults/main.yml
# Location where you want to store the mirrored files
apt_mirror_path: /data/install/ubuntu
# APT packages to install
apt_mirror_packages:
- apt-mirror
# Ubuntu releases to mirror
apt_mirror_releases:
# - focal
- jammy
# - noble
# Schedule mirror job
apt_mirror_schedule: false
Example Playbook
molecule/default/converge.yml
- name: sample playbook for role 'apt_mirror'
hosts: all
become: 'yes'
tasks:
- name: Include role 'apt_mirror'
ansible.builtin.include_role:
name: apt_mirror