chusiang.switch-apt-mirror
Ansible Role: Switch APT Mirror
This is an Ansible role to change the APT mirror for Debian and Ubuntu.
Requirements
No specific requirements.
Role Variables
Here are the available variables and their default values (found in defaults/main.yml):
# For Ubuntu
#ubuntu_apt_mirror: 'archive.ubuntu.com'
ubuntu_apt_mirror: 'free.nchc.org.tw'
# For Debian
#debian_apt_mirror: 'httpredir.debian.org'
debian_apt_mirror: 'opensource.nchc.org.tw'
Dependencies
No dependencies.
Example Playbook
Here's an example of how to use this role (with variables passed in as parameters):
- hosts: servers
roles:
- { role: chusiang.switch-apt-mirror }
History
- On April 23, 2019, support for Debian 7 ended because it reached its end of life in May 2018.
License
Copyright (c) chusiang from 2016-2019 under the MIT license.
Installa
ansible-galaxy install chusiang.switch-apt-mirror
Licenza
mit
Download
1.1k
Proprietario
A system engineer, like @DevOpsTW, @ansible-tw, @vim-tw, docker and @linux-taiwan. Hope one day can build a "🦄 Unicorn company" like《The Phoenix Project》.