install apt-cache-ng
This commit is contained in:
parent
97e90bb949
commit
78810acbc0
3 changed files with 32 additions and 0 deletions
5
books/proxy_apt.yml
Normal file
5
books/proxy_apt.yml
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
#!/usr/bin/env ansible-playbook
|
||||||
|
---
|
||||||
|
- hosts: test_proxy
|
||||||
|
roles:
|
||||||
|
- apt_cacher_ng
|
5
hosts
5
hosts
|
@ -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:
|
||||||
|
|
22
roles/apt_cacher_ng/tasks/main.yml
Normal file
22
roles/apt_cacher_ng/tasks/main.yml
Normal 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
|
Loading…
Reference in a new issue