apt-cacher/client/tasks/main.yaml
author Luke Hoersten <luke@hoersten.org>
Fri, 03 Jul 2020 09:38:16 -0500
changeset 110 83833f68dc36
parent 4 46fe3aa0080c
permissions -rw-r--r--
Added jellyfin role. Forkbombs my computer though.

---

- name: check if running apt-cacher server
  stat: path="/etc/apt-cacher-ng/acng.conf"
  register: stat_server_conf

- name: configure apt-cacher proxy
  become: yes
  template:
    src: "02proxy.j2"
    dest: "/etc/apt/apt.conf.d/02proxy"
  when: not stat_server_conf.stat.exists