manala.aptly

#######################################################################################################

:exclamation: 废弃通知 :exclamation:

此仓库及其相关角色已被废弃,建议使用 Manala Ansible Collection

您可以在 集合仓库 找到它的使用信息

#######################################################################################################

Ansible 角色:Aptly 构建状态

:exclamation: 在 主 Ansible 角色仓库报告问题发送拉取请求 :exclamation:

该角色将处理 Aptly 的设置。

它是 Manala Ansible 堆栈 的一部分,但也可以作为独立组件使用。

需求

无。

依赖

无。

安装

Ansible 2+

使用 ansible galaxy 命令行工具:

ansible-galaxy install manala.aptly

使用 ansible galaxy 需求文件:

- src: manala.aptly

角色处理程序

无。

角色变量

定义

名称 默认 类型 描述
manala_aptly_install_packages ~ 数组 要安装的依赖包
manala_aptly_install_packages_default ['bzip2', 'aptly'] 数组 默认要安装的依赖包
manala_aptly_user ~ 字符串 用户
manala_aptly_config_file '/etc/aptly.conf' 字符串 配置文件路径
manala_aptly_config_template ~ 字符串 配置模板路径
manala_aptly_config ~ 数组/字符串 配置
manala_aptly_repositories [] 数组 存储库集合

配置示例

用户:

manala_aptly_user: aptly

使用模板:

manala_aptly_config_template: my/aptly.conf.j2
manala_aptly_config:
  foo: bar

使用字典参数:

manala_aptly_config:
  rootDir: /tmp/aptly
  architectures:
    - amd64

使用原始配置:

manala_aptly_config: |
  {
      "rootDir": "/tmp/aptly",
      "architectures": [
          "amd64"
      ]
  }

使用字典的数组参数(已废弃):

manala_aptly_config:
  - rootDir: /tmp/aptly
  - architectures:
    - amd64

存储库:

manala_aptly_repositories:
  - name: stretch
    comment: Stretch
    component: main
    distribution: stretch
    origin: Foo
    label: Bar
  - name: buster
    comment: Buster
    component: main
    distribution: buster
    origin: Foo
    label: Bar
  # 忽略存储库
  - name: ignore
    state: ignore
  # 扁平化存储库
  - "{{ my_custom_repositories_array }}"

示例剧本

- hosts: servers
  roles:
    - role: manala.aptly

许可证

MIT

作者信息

Manala (http://www.manala.io/)

关于项目

Handle aptly

安装
ansible-galaxy install manala.aptly
许可证
Unknown
下载
1.4k
拥有者
Manala is an open source project supported by the french web agency ELAO providing advanced ansible roles for website's infrastructures and far more.