Oefenweb.apt
apt
Manage packages and up(date|grade)s in Debian-like systems.
Requirements
python3-apt(orpython-aptfor Debian 7)aptitude
Variables
apt_manage_sources_list: [default:false]: Whether to manage/etc/apt/sources.listapt_ubuntu_mirror: [default:mirror://mirrors.ubuntu.com/mirrors.txt]: The mirror to useapt_ubuntu_security_mirror: [default:https://security.ubuntu.com/ubuntu]: The security-mirror to useapt_src_enable: [default:true]: Whether to enable source code repositoriesapt_backports_enable: [default:true]: Whether to enable thebackportsrepositoryapt_ubuntu_universe_enable: [default:true]: Whether to enable theuniverserepositoryapt_ubuntu_multiverse_enable: [default:true]: Whether to enable themultiverserepositoryapt_ubuntu_backports_enable: [default:true]: Whether to enable thebackportsrepository [deprecated in favour ofapt_backports_enable]apt_ubuntu_partner_enable: [default:false]: Whether to enable thepartnerrepositoryapt_ubuntu_extras_enable: [default:false]: Whether to enable theextrasrepository (only applies to < 16.04)apt_debian_mirror: [default:https://deb.debian.org/debian/]: The mirror to useapt_debian_security_mirror: [default:https://security.debian.org/]: The security-mirror to useapt_debian_contrib_nonfree_enable: [default:false]: Whether to enable thecontribnon-freenon-free-firmwarerepositoryapt_dependencies: [default:[python3-apt, aptitude]]: General dependencies for apt modules to workapt_update: [default:true]: Whether to updateapt_update_cache_valid_time: [default:3600]: Number of seconds the apt cache stays validapt_upgrade: [default:true]: Whether to upgradeapt_upgrade_type: [default:dist]: If yes or safe, performs an aptitude safe-upgrade. If full, performs an aptitude full-upgrade. If dist, performs an apt-get dist-upgradeapt_upgrade_dpkg_options: [default:['force-confdef', 'force-confold']]: Adddpkgoptions toaptcommandapt_clean: [default:true]: Whether to cleanapt_dpkg_configure: [default:false]: Whether to rundpkg --configure -aapt_autoremove: [default:true]: Whether to autoremoveapt_install: [default:[]]: Packages to installapt_install_state: [default:latest]: State of packages to install (e.g.present)apt_remove: [default:[]]: Packages to removeapt_remove_purge: [default:false]: Whether to purgeapt_etc_apt_apt_conf: [default:[]]: List of lines to be added to/etc/apt/apt.confapt_etc_apt_apt_conf_d_files_absent: [default:[]]: List of files to be removed from/etc/apt/apt.conf.d
Dependencies
None
Example
---
- hosts: all
roles:
- oefenweb.apt
vars:
apt_etc_apt_apt_conf:
- |
APT {
Install-Recommends "false";
Install-Suggests "false";
Get {
Fix-Broken "true";
};
};
apt_etc_apt_apt_conf_d_files_absent:
- 20auto-upgrades
License
MIT
Author Information
Mischa ter Smitten (based on work of kosssi and Ansibles)
Feedback, bug-reports, requests, ...
Are welcome!
ansible-galaxy install Oefenweb.apt