Skip to content

Ansible Role, Setup apt cacher via docker and docker-compose.

Notifications You must be signed in to change notification settings

ball6847/ball6847.role.apt-cacher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ansible Role - ball6847.role.apt-cacher

Setup apt cacher via docker and docker-compose.

Requirements

  • docker
  • docker-compose

Role Variables

apt_cacher_path: /opt/apt-cacher

Path to place docker-compose.yml file into.

apt_cacher_volume: /var/cache/apt-cacher

Path on host to store apt cacher data.

apt_cacher_port: 3142

Port to run apt cacher on.

apt_cacher_compose_file: templates/docker-compose.yml.j2

Path to docker-compose.yml of apt-cacher, this role comes with basic docker-compose.yml, if you need to configure these values yourself, make sure you override this variable and point it to your real docker-compose.yml file.

Please note that you should always prepend your value with {{ playbook_dir }} to make it completely ignore files in role.

Dependencies

none

Example Playbook

- name: Setup Apt Cacher
  hosts: all
  become: yes
  tags: [ apt_cacher ]
  roles:
    - { role: ball6847.role.apt-cacher }

To override default template file.

- name: Setup Apt Cacher
  hosts: all
  become: yes
  tags: [ apt_cacher ]
  roles:
    - { role: ball6847.role.apt-cacher, apt_cacher_compose_file: "{{ playbook_dir }}/templates/docker-compose.yml.j2" }

License

BSD

Author Information

Porawit Poboonma

Credits

About

Ansible Role, Setup apt cacher via docker and docker-compose.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published