Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/anxs/apt
Ansible role for apt
https://github.com/anxs/apt
Last synced: about 1 month ago
JSON representation
Ansible role for apt
- Host: GitHub
- URL: https://github.com/anxs/apt
- Owner: ANXS
- License: mit
- Created: 2014-03-11T08:07:02.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2023-05-11T20:01:20.000Z (over 1 year ago)
- Last Synced: 2024-03-27T11:22:46.211Z (9 months ago)
- Language: Jinja
- Size: 33.2 KB
- Stars: 14
- Watchers: 8
- Forks: 11
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## ANXS - apt [![Build Status](https://travis-ci.com/ANXS/apt.png)](https://travis-ci.com/ANXS/apt)
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_reset_source_list: no # reset the /etc/apt/sources.list to the default
apt_mirror_url: http://us.archive.ubuntu.com # the mirror from where to install packages
apt_cache_valid_time: 3600 # Time (in seconds) the apt cache stays valid
apt_install_recommends: no # whether or not to install the "recommended" packages
apt_install_suggests: no # whether or not to install the "suggested" packages
apt_autoremove: yes # remove packages that are no longer needed for dependencies
apt_autoremove_recommends: yes # whether to automatically remove "recommended" packages
apt_autoremove_suggests: yes # whether to automatically remove "suggested" packages
apt_autoclean: yes # remove .deb files for packages no longer on your system
apt_default_packages:
- python-apt
- unattended-upgrades
```Remark: Beware that setting `apt_install_recommends` and `apt_install_suggests` to `yes` may heavily increase the apt-requirements (and hence disk usage). You should proceed cautiously changing these. Similarly, `apt_autoremove_recommends` and `apt_autoremove_suggests` to `no` will make it harder to clean up.
#### Testing
This project comes with a VagrantFile, this is a fast and easy way to test changes to the role, fire it up with `vagrant up`See [vagrant docs](https://docs.vagrantup.com/v2/) for getting setup with vagrant
#### License
Licensed under the MIT License. See the LICENSE file for details.
#### Feedback, bug-reports, requests, ...
Are [welcome](https://github.com/ANXS/apt/issues)!