apt-cacher/client/tasks/main.yaml
author Luke Hoersten <luke@hoersten.org>
Sat, 20 Jul 2024 13:51:46 -0500
changeset 234 f46b0f7e758c
parent 4 46fe3aa0080c
permissions -rw-r--r--
Added task to ensure log2ram is running.

---

- 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