apt-cacher/client/tasks/main.yaml
author Luke Hoersten <luke@hoersten.org>
Sun, 09 Feb 2020 20:34:46 -0600
changeset 5 4f014cdac0b1
parent 4 46fe3aa0080c
permissions -rw-r--r--
Completed prometheus basic roles.

---

- 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