|
|
@ -28,6 +28,26 @@
|
|
|
|
notify: Restart apt-cacher-ng
|
|
|
|
notify: Restart apt-cacher-ng
|
|
|
|
no_log: true
|
|
|
|
no_log: true
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- name: Edit the clients allowed to use the proxy
|
|
|
|
|
|
|
|
lineinfile:
|
|
|
|
|
|
|
|
path: /etc/hosts.allow
|
|
|
|
|
|
|
|
regexp: '^apt-cacher-ng'
|
|
|
|
|
|
|
|
line: "apt-cacher-ng: 127.0.0.1 {{ apt_proxy_allowed_clients | join(' ') }}"
|
|
|
|
|
|
|
|
owner: root
|
|
|
|
|
|
|
|
group: root
|
|
|
|
|
|
|
|
mode: '644'
|
|
|
|
|
|
|
|
notify: Restart apt-cacher-ng
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- name: Block everyone else
|
|
|
|
|
|
|
|
lineinfile:
|
|
|
|
|
|
|
|
path: /etc/hosts.deny
|
|
|
|
|
|
|
|
regexp: '^apt-cacher-ng'
|
|
|
|
|
|
|
|
line: "apt-cacher-ng: ALL"
|
|
|
|
|
|
|
|
owner: root
|
|
|
|
|
|
|
|
group: root
|
|
|
|
|
|
|
|
mode: '644'
|
|
|
|
|
|
|
|
notify: Restart apt-cacher-ng
|
|
|
|
|
|
|
|
|
|
|
|
- name: Enable apt-cacher-ng
|
|
|
|
- name: Enable apt-cacher-ng
|
|
|
|
systemd:
|
|
|
|
systemd:
|
|
|
|
name: "apt-cacher-ng"
|
|
|
|
name: "apt-cacher-ng"
|
|
|
|