ansible/roles/apt_cacher_ng/tasks/main.yml
shirenn 1290f4cb83
Some checks failed
continuous-integration/drone/push Build is failing
[apt-cacher-ng] to please the linter
2021-04-08 00:02:39 +02:00

30 lines
706 B
YAML

---
- name: Install apt-cacher-ng
apt:
name: apt-cacher-ng
status: present
register: apt_result
retries: 3
until: apt_result is succedded
- name: Deploy configuration for apt-cacher-ng
template:
src: apt-cacher-ng/acng.conf.j2
dest: /etc/apt-cacher-ng/acng.conf
- name: Setup https for debian repository
template:
src: apt-cacher-ng/backends_debian.j2
dest: /etc/apt-cacher-ng/backends_debian
- name: Removes other distribution
file:
path: '/etc/apt-cacher-ng/{{ item }}'
state: removed
loop:
- backends_ubuntu.default
- backends_ubuntu
- backends_kali.default
- backends_gentoo.default
- backends_debvol
- backends_debian.default