noplanman.apt_cacher_ng

Rôle Ansible pour Apt-Cacher NG

Statut de construction Rôle Ansible


:rocket: Le développement a été déplacé sur gitlab.com.

(Le dépôt sur GitHub est uniquement un miroir, donc forkez sur GitLab pour contribuer.)


Installe et configure Apt-Cacher NG sur des serveurs Debian/Ubuntu et leurs clients respectifs.

Pré-requis

Pour les clients, un serveur Apt-Cacher NG en cours d'exécution auquel ils peuvent se connecter.

Variables du Rôle

Voir le fichier defaults/main.yml pour plus de détails.

Variables principales :

# Définissez ceci dans votre playbook pour configurer le client.
# apt_cacher_ng_server: "1.1.1.1"

apt_cacher_ng_bind_address: "0.0.0.0"
apt_cacher_ng_port: "3142"
apt_cacher_ng_report_page: "acng-report.html"
apt_cacher_ng_cache_dir: "/var/cache/apt-cacher-ng"

Tags du Rôle

Chaque partie de la configuration a un tag.

apt-cacher-ng:install
apt-cacher-ng:configure
apt-cacher-ng:client

Dépendances

Aucune.

Exemple de Playbook

# playbook.yml
---
- hosts: servers
  become: yes
  vars_files:
    - vars/main.yml
  roles:
    - { role: noplanman.apt_cacher_ng }
# vars/main.yml (serveur)
---
apt_cacher_ng_port: "3142"
apt_cacher_ng_cache_dir: "/var/cache/apt-cacher-ng"
apt_cacher_ng_log_dir: "/var/log/apt-cacher-ng"
# vars/main.yml (client)
---
apt_cacher_ng_server: "1.1.1.1"
apt_cacher_ng_port: "3142"

Tests

Docker est utilisé pour tester le rôle avec différents systèmes d'exploitation.

Vérifiez le dossier tests.

Licence

MIT

À propos du projet

Install and run Apt-Cacher NG on a Debian-like system.

Installer
ansible-galaxy install noplanman.apt_cacher_ng
Licence
mit
Téléchargements
103
Propriétaire
Passionate open sourcerer and sharer 😇 Find me coding at @php-telegram-bot and a plethora of other little projects that I care about.