godleon.apt_mirror

角色名称

godleon.apt_mirror

要求

软件

  • Python 3.0 或更新版本

角色变量

应传递给此角色的变量及其简要说明如下:

apt_mirror:
  # 存放 APT 包和元数据的目录
  dir: "/var/local-repo"
  # 存放镜像日志的目录
  log_dir: "/tmp/apt-mirror-logs"
  ubuntu:
    enabled: true
    # APT 包源
    source: "http://archive.ubuntu.com/ubuntu"
    nthreads: 10
    # 需要同步到本地 APT 镜像的版本
    support_versions:
      - name: trusty
        # 如果需要源代码包,请设置为 "true"
        mirror_source: true
      - name: xenial
        mirror_source: true
  debian:
    enabled: false

依赖关系

示例剧本

包含关于如何使用您的角色的示例(例如,作为参数传递的变量)对用户来说总是很不错的:

- hosts: servers
  roles:
  - { role: godleon.apt_mirror }

许可证

MIT

作者信息

Leon Tseng

参考资料

关于项目

Configure a local APT mirror of Ubuntu OS (Debian maybe will be support later)

安装
ansible-galaxy install godleon.apt_mirror
许可证
mit
下载
146
拥有者