noplanman.apt_cacher_ng
Ansible Role for Apt-Cacher NG
:rocket: Development has moved to gitlab.com.
(The GitHub repository is just a copy, so please use GitLab to contribute.)
This role installs and sets up Apt-Cacher NG on Debian/Ubuntu servers and their clients.
Requirements
Clients need access to a running Apt-Cacher NG server.
Role Variables
Check the defaults/main.yml
file for more information.
Key variables:
# Define this in your playbook to set up on 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"
Role Tags
Different parts of the setup have tags.
apt-cacher-ng:install
apt-cacher-ng:configure
apt-cacher-ng:client
Dependencies
None.
Example Playbook
# playbook.yml
---
- hosts: servers
become: yes
vars_files:
- vars/main.yml
roles:
- { role: noplanman.apt_cacher_ng }
# vars/main.yml (server)
---
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 is used to test this role on various operating systems.
See the tests
folder for details.
License
MIT License
Informazioni sul progetto
Install and run Apt-Cacher NG on a Debian-like system.
Installa
ansible-galaxy install noplanman.apt_cacher_ng
Licenza
mit
Download
103
Proprietario
Passionate open sourcerer and sharer 😇
Find me coding at @php-telegram-bot and a plethora of other little projects that I care about.