🚀 Development has moved to gitlab.com.
(The repository on GitHub is only a mirror, so fork on GitLab to contribute.)
Installs and configures Apt-Cacher NG on Debian/Ubuntu servers and respective clients.
For clients, a running Apt-Cacher NG server they can connect to.
See the defaults/main.yml
file for more details.
Main 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"
Each part of the setup has a tag.
apt-cacher-ng:install
apt-cacher-ng:configure
apt-cacher-ng:client
None.
# 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"
Docker is used to test the role with different operating systems.
Check the tests
folder.
MIT