aboutsummaryrefslogtreecommitdiff
path: root/roles/apt_cacher/tasks/main.yml
blob: 84556ca192fc27fb5145f18013c7c0f89241c8a2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
---
- name: Install package
  apt:
    name: apt-cacher-ng
  become: yes

- name: Ensure write access
  file:
    path: '{{ apt_cacher.dir }}'
    owner: apt-cacher-ng
    group: apt-cacher-ng
    state: directory
  become: yes

- name: Install config
  template:
    src: acng.conf.j2
    dest: /etc/apt-cacher-ng/acng.conf
  become: yes
  notify: restart