The ansible-role-apt Ansible role manages the APT configuration and updates the /etc/apt/sources.list for Debian and Ubuntu systems.
Role variables
Important variables:
| Variable | Description | Default |
|---|---|---|
apt_debian_community |
Enables community repositories (Debian contrib and main, or Ubuntu universe) | true |
apt_debian_nonfree |
Enables non-free repositories (Debian non-free, non-free-firmware, or Ubuntu multiverse) | true |
apt_debian_backports |
Enables the backports repository on Debian (no effect on Ubuntu systems) | false |
apt_deb_src |
Enables source package repositories (deb-src entries) | false |
Other variables:
| Variable | Description | Default |
|---|---|---|
apt_mirror_url_debian |
Debian mirror URL | "http://deb.debian.org/debian" |
apt_mirror_url_debian_security |
Debian security mirror URL | "http://deb.debian.org/debian-security" |
apt_mirror_url_ubuntu |
Ubuntu mirror URL | "http://archive.ubuntu.com/ubuntu" |
Author and license
The ansible-role-apt role has been written by James Cherti and is distributed under terms of the MIT license.
Copyright (C) 2000-2026 James Cherti
Distributed under terms of the MIT license.
Links
Related posts:
- ansible-role-reniced – An Ansible role that configures reniced on Debian and Ubuntu based operating systems
- quick-sdcv.el, a package that enables Emacs to function as an offline dictionary using sdcv
- Disabling XML-RPC in WordPress for Security and Performance
- Productivity: Time-saving tips for the digital age
- Ansible-role-flatpak, an Ansible Role that Installs and Configures Flatpak
- My Ergonomic Workstation: Enhancing Focus, Comfort, and Efficiency
- Ansible: Reintegrating /etc/rc.local in Linux systems that use Systemd as their init system
- Ansible: Installing and configuring Gitolite using Ansible for secure Git repository management
- Ansible: ansible-role-tuned, an Ansible role which configures tuned
- ansible-role-auto-upgrade – An Ansible role that automates upgrading Linux operating systems
- Emacs Evil Mode: How to restore both the line and column number of a mark, not just the line number
- bash-stdops – A collection of useful Bash Shell Scripts
- jc-dotfiles – A collection of configuration files for UNIX/Linux systems
- How Breaking Windows 30 Years Ago Turned Me Into a Software Developer and Linux Professional
- A tool to Execute a Command in a new Tmux Window
- Emacs quick-fasd: Integrate Fasd for fast file and directory navigation
- Emacs .dir-locals.el – Add project path to $PYTHONPATH (Python Development in Emacs)
- Enhancing Git Diff for Emacs Lisp: Better Git Diff of Elisp function or macro definitions
- Gentoo Linux: Printer driver for the Brother QL-1110NWB
- Emacs: Toggling symbol highlighting with unique colors for each symbol using built-in functions