apt-cacher/server/tasks/main.yaml
changeset 2 2556522a2a45
parent 0 df042396074e
child 144 267d58c0e186
equal deleted inserted replaced
1:fd351734f007 2:2556522a2a45
       
     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}}" }