26 lines
590 B
YAML
26 lines
590 B
YAML
|
---
|
||
|
- name: Ensure apt-cacher-ng is present
|
||
|
apt:
|
||
|
name: apt-cacher-ng
|
||
|
state: present
|
||
|
|
||
|
- name: Allow to proxy every domain
|
||
|
lineinfile:
|
||
|
path: /etc/apt-cacher-ng/acng.conf
|
||
|
insertafter: EOF
|
||
|
line: "PassThroughPattern: .*"
|
||
|
notify: restart apt-cacher-ng
|
||
|
|
||
|
- name: Ensure apt-cacher-ng listens on all addresses
|
||
|
lineinfile:
|
||
|
path: /etc/apt-cacher-ng/acng.conf
|
||
|
insertafter: EOF
|
||
|
line: "BindAddress: 0.0.0.0"
|
||
|
notify: restart apt-cacher-ng
|
||
|
|
||
|
- name: Ensure apt-cacher-ng is started and enabled
|
||
|
systemd:
|
||
|
name: apt-cacher-ng
|
||
|
enabled: yes
|
||
|
state: started
|