35 lines
690 B
YAML
35 lines
690 B
YAML
---
|
|
- 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
|
|
template:
|
|
src: "acng.conf.j2"
|
|
dest: "/etc/apt-cacher-ng/acng.conf"
|
|
owner: root
|
|
group: root
|
|
mode: '644'
|
|
notify: Restart apt-cacher-ng
|
|
|
|
- name: Create config files
|
|
template:
|
|
src: "security.conf.j2"
|
|
dest: "/etc/apt-cacher-ng/security.conf"
|
|
owner: root
|
|
group: apt-cacher-ng
|
|
mode: '640'
|
|
notify: Restart apt-cacher-ng
|
|
no_log: true
|
|
|
|
- name: Enable apt-cacher-ng
|
|
systemd:
|
|
name: "apt-cacher-ng"
|
|
state: started
|
|
enabled: yes
|