server_repository role – Manage custom apt repository with aptly

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.server_repository.

Entry point main – Manage custom apt repository with aptly

Synopsis

  • Install and setup an aptly repository;

  • Create a GPG key to sign the repository if needed;

  • Install and setup nginx to serve the repository.

Parameters

Parameter

Comments

allowed_ips

list / elements=string

list of ip ranges allowed access the repository

Default: ["any"]

ntp_server

string

ntp server

Default: "ntp.ubuntu.com"

repository_name

string

name of the custom repository

Default: "focal-tp"