apt-cacher/server/tasks/main.yaml
author Luke Hoersten <luke@hoersten.org>
Sat, 02 Jul 2022 15:37:26 -0500
changeset 181 2b30d081dd9b
parent 144 267d58c0e186
child 187 0f3a64c60ec5
permissions -rw-r--r--
Version updates.

---

- name: install apt packages
  become: yes
  apt: name="apt-cacher-ng"

- name: configure apt-cacher dirs
  become: yes
  lineinfile:
    path: "/etc/apt-cacher-ng/acng.conf"
    regexp: "^{{item.key}}:"
    insertafter: "^# {{item.key}}:"
    line: "{{item.key}}: {{item.val}}"
  loop:
    - { key: "CacheDir", val: "{{apt_cacher_cache_dir}}" }
    - { key: "LogDir", val: "{{apt_cacher_log_dir}}" }
    - { key: "Port", val: "{{apt_cacher_port}}" }