apt-cacher/client/tasks/main.yaml
author Luke Hoersten <luke@hoersten.org>
Sun, 25 Jul 2021 10:30:51 -0500
changeset 174 431c6d5e5dd4
parent 4 46fe3aa0080c
permissions -rw-r--r--
Lots of updates.

---

- 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