manala.aptly

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

🚨 DEPRECATION 🚨

This repository and the associated role are no longer maintained. Instead, please use the Manala Ansible Collection.

For usage information, visit the collection repository.

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

Ansible Role: Aptly Build Status

🚨 Please report issues and submit Pull Requests in the main Ansible Role repository. 🚨

This role is used to set up Aptly.

It is part of the Manala Ansible stack but can also be used on its own.

Requirements

None.

Dependencies

None.

Installation

Ansible 2+

To install using the Ansible Galaxy CLI:

ansible-galaxy install manala.aptly

To install using an Ansible Galaxy requirements file:

- src: manala.aptly

Role Handlers

None.

Role Variables

Definition

Name Default Type Description
manala_aptly_install_packages ~ Array Packages to be installed
manala_aptly_install_packages_default ['bzip2', 'aptly'] Array Default packages to install
manala_aptly_user ~ String User
manala_aptly_config_file '/etc/aptly.conf' String Path to config file
manala_aptly_config_template ~ String Path to config template
manala_aptly_config ~ Array/String Config settings
manala_aptly_repositories [] Array List of repositories

Configuration Examples

Set User:

manala_aptly_user: aptly

Use a template:

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

Use dictionary parameters:

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

Use raw config:

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

Use deprecated array parameters:

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

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

Example Playbook

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

License

MIT

Author Information

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

Informazioni sul progetto

Handle aptly

Installa
ansible-galaxy install manala.aptly
Licenza
Unknown
Download
1.4k
Proprietario
Manala is an open source project supported by the french web agency ELAO providing advanced ansible roles for website's infrastructures and far more.