route1337.ubuntu_base
Ansible角色 - ubuntu-base
该存储库包含Ubuntu基本(ubuntu_base)Ansible角色。
该角色的功能
此Ansible角色将配置一些基本的系统设置,添加/删除一些常见软件包,并为一些常见服务部署标准配置。
所做的更改:
- 移除以下软件包
- landscape-client-ui
- landscape-client-ui-install
- landscape-client
- landscape-common
- update-motd
- cloud-init
- 安装以下软件包
- bmon
- htop
- vim
- curl
- gnupg2
- atop
- git
- molly-guard
- python-pip
- python-dev
- python3-pip
- unzip
- psmisc
- net-tools
- zsh
- fzf(仅限Ubuntu 20.04及以上版本)
- locate
- 设置root用户使用zsh
- 在全系统范围内部署自定义的
zshrc
- 安装并配置ntp,使其使用
UTC
时区从NTP池运行 - 在python3中安装thefuck,并根据Matthew Ahrenstein的自定义规则为root配置(仅限Ubuntu 18.04及以上版本)
- (可选)为
/etc/resolv.conf
指定DNS服务器,并禁用SystemD解析器
变量
以下变量是可选的:
ubuntu_base.dns_servers
- 指定Ubuntu使用的DNS服务器列表,而不是使用SystemD解析器。(如果保持未定义,将使用操作系统默认值)ubuntu_base.search_domain
- 在resolv.conf中使用的搜索域。(如果指定了ubuntu_base.dns_servers
,则此变量是必需的!)ubuntu_base.tzsymlink
- 本地时区的符号链接。(确保这两个时区变量匹配相同的时区)ubuntu_base.localtime
- 本地时间的符号链接路径。(确保这两个时区变量匹配相同的时区)
测试
此角色经过Test Kitchen进行全面测试,使用了此存储库中包含的示例清单数据。
TESTING.md包含测试的详细信息和说明。
支持此Ansible角色的捐赠
Route 1337 LLC的开源代码在很大程度上依赖于捐赠。如果您发现此Ansible角色有用,请考虑使用GitHub赞助按钮来表示您持续的支持。
感谢您的支持!
关于项目
Various tweaks and basic prerequisites for Ubuntu systems along with a fancy bash prompt
安装
ansible-galaxy install route1337.ubuntu_base
许可证
mit
下载
187
拥有者
Modern InfoSec, Zero Trust, and DevOps consulting for Web2 and Web3 clients.