diff options
Diffstat (limited to 'roles/apt_cacher/tasks/main.yml')
-rw-r--r-- | roles/apt_cacher/tasks/main.yml | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/roles/apt_cacher/tasks/main.yml b/roles/apt_cacher/tasks/main.yml new file mode 100644 index 0000000..84556ca --- /dev/null +++ b/roles/apt_cacher/tasks/main.yml @@ -0,0 +1,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 |