-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added apt clean-up, updated Readme and defaults
- Loading branch information
Showing
6 changed files
with
26 additions
and
15 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,19 +1,23 @@ | ||
## Ansibles - apt [![Build Status](https://travis-ci.org/Ansibles/apt.png)](https://travis-ci.org/Ansibles/apt) | ||
|
||
Update and manage the apt-cache | ||
Ansible role which executes apt-get update to ensure the local APT package cache is up to date. At the same time, it cleans it from packages and .deb files which are no longer needed. | ||
|
||
|
||
#### Variables | ||
|
||
```yaml | ||
apt_cache_valid_time: # time (in seconds) that the apt cache stays valid | ||
apt_install_recommends: # true/false - whether or not to install the "recommended" packages | ||
apt_install_suggests: # true/false - whether or not to install the "suggested" packages | ||
apt_reset_source_list: no # reset the /etc/apt/sources.list to the default | ||
apt_cache_valid_time: 3600 # Time (in seconds) the apt cache stays valid | ||
apt_install_recommends: yes # whether or not to install the "recommended" packages | ||
apt_install_suggests: yes # whether or not to install the "suggested" packages | ||
``` | ||
#### License | ||
Licensed under the MIT License. See the LICENSE file for details. | ||
#### Feedback, bug-reports, requests, ... | ||
Are [welcome](https://github.com/ansibles/apt/issues)! |
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,5 +1,6 @@ | ||
# file: apt/defaults/main.yml | ||
|
||
apt_cache_valid_time: 3600 | ||
apt_install_recommends: true | ||
apt_install_suggests: true | ||
apt_reset_source_list: no # reset the /etc/apt/sources.list to the default | ||
apt_cache_valid_time: 3600 # Time (in seconds) the apt cache stays valid | ||
apt_install_recommends: yes # whether or not to install the "recommended" packages | ||
apt_install_suggests: yes # whether or not to install the "suggested" packages |
This file was deleted.
Oops, something went wrong.
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,4 +1,4 @@ | ||
APT::Install-Recommends "{{ apt_install_recommends }}"; | ||
APT::Install-Suggests "{{ apt_install_suggests }}"; | ||
APT::Install-Recommends "{{apt_install_recommends}}"; | ||
APT::Install-Suggests "{{apt_install_suggests}}"; | ||
|
||
APT::Get::Show-Upgraded "true"; |