-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9009ee8
commit 25ad055
Showing
5 changed files
with
39 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,24 @@ | ||
# TODO | ||
# tobias_richter.apt_config | ||
|
||
[![Build Status](https://travis-ci.org/tobias-richter/ansible-apt-config.svg?branch=master)](https://travis-ci.org/tobias-richter/ansible-apt-config) | ||
|
||
This roles configures apt sources, preferences and apt-cacher-ng / proxy for Debian and Ubuntu. | ||
|
||
## Requirements | ||
|
||
This role requires Ansible 2.7 or higher. | ||
|
||
## Role Variables | ||
|
||
See [defaults/main.yml](defaults/main.yml) for the documented role variables. | ||
See also the distribution specific [vars](vars). | ||
|
||
|
||
## Example Playbook | ||
|
||
This playbook configures apt together with a proxy server / apt-cacher-ng. | ||
|
||
- hosts: apt_config | ||
roles: | ||
- role: tobias_richter.apt_config | ||
apt_config_apt_cacher_ng: http://apt-cacher-ng.main.corp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,15 @@ | ||
# use apt-cacher-ng when defined | ||
# configure apt-cacher-ng when defined | ||
# apt_config_apt_cacher_ng: | ||
|
||
# Path to sources.list | ||
apt_config_sources_list_path: /etc/apt/sources.list | ||
|
||
# distribution release | ||
apt_config_distribution_release: "{{ ansible_distribution_release }}" | ||
|
||
_apt_config_components_custom: "{{ apt_config_components_custom | default([]) }}" | ||
apt_config_components: "{{ apt_config_components_default | union(_apt_config_components_custom) }}" | ||
# custom componens | ||
apt_config_components_custom: [] | ||
# e.g. | ||
# - rpimain | ||
|
||
apt_config_components: "{{ apt_config_components_default | union(apt_config_components_custom) }}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
# Raspbian debs | ||
apt_config_debs: | ||
- uri: http://raspbian.raspberrypi.org/raspbian | ||
suite: "{{ apt_config_distribution_release }}" | ||
|
||
# Raspbian components | ||
apt_config_components_default: | ||
- main | ||
- contrib | ||
- non-free | ||
# - rpimain | ||
- non-free |