install apt-cache-ng

This commit is contained in:
histausse 2021-06-28 17:24:36 +02:00
parent 97e90bb949
commit 78810acbc0
Signed by: histausse
GPG key ID: 67486F107F62E9E9
3 changed files with 32 additions and 0 deletions

5
books/proxy_apt.yml Normal file
View file

@ -0,0 +1,5 @@
#!/usr/bin/env ansible-playbook
---
- hosts: test_proxy
roles:
- apt_cacher_ng

5
hosts
View file

@ -15,6 +15,7 @@ all:
debian_bullseye: debian_bullseye:
hosts: hosts:
vm4: vm4:
proxy_apt:
proxmox_buster: proxmox_buster:
hosts: hosts:
hellman: hellman:
@ -41,6 +42,7 @@ all:
vm2: vm2:
vm3: vm3:
vm4: vm4:
proxy_apt:
vpn: vpn:
hosts: hosts:
azerty: azerty:
@ -51,3 +53,6 @@ all:
vm2: vm2:
vm3: vm3:
vm4: vm4:
test_proxy:
hosts:
proxy_apt:

View file

@ -0,0 +1,22 @@
---
- name: Install apt-cacher-ng
apt:
name:
- apt-cacher-ng
state: latest
update_cache: true
register: apt_result
retries: 3
until: apt_result is succeeded
#- name: Create config files
# ansible.builtin.template:
# src: "wiregard.conf"
# dest: "/etc/wireguard/{{ item.key }}.conf"
# owner: root
# group: root
# mode: '600'
# notify: Restart wireguard for interface
# loop:
# - "{{ lookup('dict', vpn_interfaces) }}"
# no_log: true