add_deb role – Add packages to custom repository

Note

This role is part of the ufrmath.computer_labs collection (version 1.0.0).

To install it use: ansible-galaxy collection install git+https://github.com/guillod/computer_labs.

To use it in a playbook, specify: ufrmath.computer_labs.add_deb.

Entry point main – Add packages to custom repository

Synopsis

  • Determine versions already installed in aptly repository;

  • Run each tasks file provided by packages to download the corresponding deb package in unarchive_path;

  • Add the downloaded deb packages to the repository;

  • Add local deb provided by files to the repository.

Parameters

Parameter

Comments

files

list / elements=string

list of package files to add to the repository

Default: []

packages

dictionary

list of packages and version to add to the repository

Default: {}

repository_name

string

name of the aptly repository

Default: "focal-tp"

unarchive_path

string

path where to download deb

Default: "/tmp/aptly"