🚀 Development has moved to git.feneas.org.
(The repository on GitHub is only a mirror, so fork on Feneas to contribute. No registration needed, just sign in with your GitHub account.)
Installs extra repository sources on Debian/Ubuntu servers.
Important! Make sure you check if your distribution and release is supported. Click the links below to see the most up-to-date availability.
Available out of the box:
Easily install and remove keys and repositories using the apt_extra_sources_keys
and apt_extra_sources_repos
variables.
None.
See the defaults/main.yml
file for more details.
All key and repository paths can be overridden.
Main variables:
# Pre-packaged
apt_extra_sources_mariadb: yes
apt_extra_sources_mysql: yes
apt_extra_sources_mysql_version: 5.7 # can be either 5.6, 5.7 or 8.0
apt_extra_sources_nginx: yes
apt_extra_sources_php71: yes
apt_extra_sources_tor: yes
# Modify pre-packaged
apt_extra_sources_tor_repo: "deb http://deb.torproject.org/torproject.org tor-experimental-0.3.5.x-stretch main"
# Manually add
apt_extra_sources_keys:
- url: "https://www.dotdeb.org/dotdeb.gpg"
- { keyserver: keyserver.ubuntu.com, id: F1656F24C74CD1D8 }
apt_extra_sources_repos:
- repo: "deb http://packages.dotdeb.org jessie all"
- repo: "deb http://mirror.rackspeed.de/mariadb.org/repo/10.2/debian stretch main"
# Manually remove
apt_extra_sources_keys:
- { url: "https://www.dotdeb.org/dotdeb.gpg", state: absent }
apt_extra_sources_repos:
- { repo: "deb http://packages.dotdeb.org jessie all", state: absent }
None.
---
- hosts: servers
become: yes
roles:
- role: noplanman.apt_extra_sources
Docker is used to test the role with different operating systems.
Check the tests
folder.
MIT