# HG changeset patch # User Luke Hoersten # Date 1581275836 21600 # Node ID 46fe3aa0080c64d3ff06284a6675f92b9ad40060 # Parent 0dc5400538ef55d59b7a53b4cd18d32f806cb42e Check for server conf for apt cacher proxy. diff -r 0dc5400538ef -r 46fe3aa0080c apt-cacher/client/tasks/main.yaml --- 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