No description
Find a file
Mark van Huijstee d64a217e14
Merge pull request #4 from de-it-krachten/dev
Update supported platforms & CI (2026-03-14)
2026-03-15 12:35:34 +01:00
.github/workflows Update supported platforms & CI 2026-03-14 19:15:32 +01:00
defaults Initial working code 2025-10-28 00:24:08 +01:00
meta Initial working code 2025-10-28 00:24:08 +01:00
molecule/default Update supported platforms & CI 2026-03-14 14:31:08 +01:00
tasks Initial working code 2025-10-28 00:24:08 +01:00
templates Initial working code 2025-10-28 00:24:08 +01:00
.ansible-lint Initial working code 2025-10-28 00:24:08 +01:00
.cicd Update CI 2026-03-06 20:42:36 +01:00
.cicd.overwrite Update CI 2026-03-06 20:42:36 +01:00
.collections Initial working code 2025-10-28 00:24:08 +01:00
.gitignore Initial working code 2025-10-28 00:24:08 +01:00
.releaserc.yml Initial working code 2025-10-28 00:24:08 +01:00
.roles Initial working code 2025-10-28 00:24:08 +01:00
.yamllint Initial working code 2025-10-28 00:24:08 +01:00
CHANGELOG.md chore(release): 1.0.0 [skip ci] 2026-03-14 16:30:39 +00:00
README.md Update CI 2026-03-06 20:42:36 +01:00

CI

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