tobias_richter.apt_config
tobias_richter.apt_config
这个角色用于配置 Debian 和 Ubuntu 的 apt 源、优先级和 apt-cacher-ng / 代理。
需求
此角色需要 Ansible 2.7 或更高版本。
角色变量
请查看 defaults/main.yml 以获取记录的角色变量。 另请查看特定发行版的 vars。
示例剧本
此剧本配置 apt 以及一个代理服务器 / apt-cacher-ng。
- hosts: apt_config
roles:
- role: tobias_richter.apt_config
apt_config_http_proxy: http://apt-cacher-ng.main.corp