changeset 4 | 46fe3aa0080c |
parent 2 | 2556522a2a45 |
--- a/apt-cacher/client/tasks/main.yaml Sun Feb 09 12:20:22 2020 -0600 +++ b/apt-cacher/client/tasks/main.yaml Sun Feb 09 13:17:16 2020 -0600 @@ -1,7 +1,12 @@ --- +- 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