aptly

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

:exclamation: DEPRECATION :exclamation:

This repository and the role associated are deprecated in favor of the Manala Ansible Collection

You will find informations on its usage on the collection repository

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

Ansible Role: Aptly Build Status

:exclamation: Report issues and send Pull Requests in the main Ansible Role repository :exclamation:

This role will deal with the setup of Aptly.

It's part of the Manala Ansible stack but can be used as a stand alone component.

Requirements

None.

Dependencies

None.

Installation

Ansible 2+

Using ansible galaxy cli:

ansible-galaxy install manala.aptly

Using ansible galaxy requirements file:

- src: manala.aptly

Role Handlers

None.

Role Variables

Definition

Name Default Type Description
manala_aptly_install_packages ~ Array Dependency packages to install
manala_aptly_install_packages_default ['bzip2', 'aptly'] Array Default dependency packages to install
manala_aptly_user ~ String User
manala_aptly_config_file '/etc/aptly.conf' String Config file path
manala_aptly_config_template ~ String Config template path
manala_aptly_config ~ Array/String Config
manala_aptly_repositories [] Array Collection of repositories

Configuration example

User:

manala_aptly_user: aptly

Use template:

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

Use dict parameters:

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

Use raw config:

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

Use dict's array parameters (deprecated):

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

Repositories:

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
  # Ignore repository
  - name: ignore
    state: ignore
  # Flatten repositories
  - "{{ my_custom_repositories_array }}"

Example playbook

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

Licence

MIT

Author information

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

About

Handle aptly

Install
ansible-galaxy install manala/ansible-role-aptly
GitHub repository
License
Unknown
Downloads
1410
Owner
Manala is an open source project supported by the french web agency ELAO providing advanced ansible roles for website's infrastructures and far more.