apt-cacher/server/tasks/main.yaml
author Luke Hoersten <luke@hoersten.org>
Sun, 05 Jul 2020 10:25:32 -0500 (2020-07-05)
changeset 118 56bffa9ef826
parent 2 2556522a2a45
child 144 267d58c0e186
permissions -rw-r--r--
Added nginx and oragono HUP reloading to systemd handlers. Added nginx config.
---

- name: install apt packages
  become: yes
  apt: name="apt-cacher-ng"

- name: configure apt-cacher dirs
  become: yes
  lineinfile:
    path: "/etc/apt-cacher-ng/acng.conf"
    regexp: "^{{item.key}}:"
    insertafter: "^# {{item.key}}:"
    line: "{{item.key}}: {{item.val}}"
  with_items:
    - { key: "CacheDir", val: "{{apt_cacher_cache_dir}}" }
    - { key: "LogDir", val: "{{apt_cacher_log_dir}}" }
    - { key: "Port", val: "{{apt_cacher_port}}" }