Switch from squid to apt-cacher-ng and from shorewall to firewalld.
This commit is contained in:
parent
8ae165e842
commit
cce0dfcafb
11 changed files with 127 additions and 18 deletions
1
roles/apt-cacher/files/apt.conf
Normal file
1
roles/apt-cacher/files/apt.conf
Normal file
|
@ -0,0 +1 @@
|
|||
Acquire::http::Proxy "http://localhost:3142";
|
3
roles/apt-cacher/handlers/main.yml
Normal file
3
roles/apt-cacher/handlers/main.yml
Normal file
|
@ -0,0 +1,3 @@
|
|||
- name: start apt-cacher-ng
|
||||
service: name=apt-cacher-ng state=started enabled=yes
|
||||
listen: "start apt-cacher-ng"
|
13
roles/apt-cacher/tasks/main.yml
Normal file
13
roles/apt-cacher/tasks/main.yml
Normal file
|
@ -0,0 +1,13 @@
|
|||
- name: install apt-cacher-ng package
|
||||
apt:
|
||||
name: apt-cacher-ng
|
||||
state: latest
|
||||
|
||||
- name: enable apt-cacher-ng for localhost
|
||||
copy:
|
||||
src: apt.conf
|
||||
dest: /etc/apt/apt.conf
|
||||
backup: yes
|
||||
notify: "start apt-cacher-ng"
|
||||
|
||||
- meta: flush_handlers
|
Loading…
Add table
Add a link
Reference in a new issue