roles/apt-cacher/server/tasks/main.yaml
changeset 0 df042396074e
equal deleted inserted replaced
-1:000000000000 0:df042396074e
       
     1 ---
       
     2 
       
     3 - name: install apt packages
       
     4   become: yes
       
     5   apt: name="apt-cacher-ng"
       
     6 
       
     7 - name: configure apt-cacher dirs
       
     8   become: yes
       
     9   lineinfile:
       
    10     path: "/etc/apt-cacher-ng/acng.conf"
       
    11     regexp: "^{{item.key}}:"
       
    12     insertafter: "^# {{item.key}}:"
       
    13     line: "{{item.key}}: {{item.val}}"
       
    14   with_items:
       
    15     - { key: "CacheDir", val: "{{apt_cacher_cache_dir}}" }
       
    16     - { key: "LogDir", val: "{{apt_cacher_log_dir}}" }
       
    17     - { key: "Port", val: "{{apt_cacher_port}}" }