TheRojam / ansible-role-apt_mirror

This Ansible role is used for configuring an APT mirror of Debian family Linux distribution. (Ubuntu first)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Role Name

godleon.apt_mirror

Requirements

Software

  • Python 3.0 or newer version

Role Variables

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

Dependencies

None

Example Playbook

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 }

License

MIT

Author Information

Leon Tseng

References

About

This Ansible role is used for configuring an APT mirror of Debian family Linux distribution. (Ubuntu first)

License:MIT License


Languages

Language:Shell 100.0%