coaxial.base
基础
服务器的意见导向基础配置。
角色变量
名称 | 默认值 | 可能的值 | 描述 |
---|---|---|---|
base__operator_username |
user |
任何有效的用户名 | 管理账户用户名。 |
base__operator_password |
'!' (即无密码) |
操作账户密码,参考生成密码的说明或使用mkpasswd --method=sha-512 。 |
|
base__operator_shell |
/bin/bash |
定义操作账户的默认外壳。 | |
base__provisioning_username |
ansible |
Ansible使用的用户。 | |
base__ssh_pubkey_path |
~/.ssh/id_pub.rsa |
添加到authorized_keys 的公共密钥,适用于两个用户。 |
|
base__timezone |
Etc/UTC |
该机器的时区。见为什么UTC是你服务器的唯一真时区 | |
base__ntp_server |
ntp.ubuntu.com |
获取时间的NTP服务器。 | |
base__ntp_server_fallback |
pool.ntp.org |
如果上述服务器失败,则使用的备用NTP服务器。 |
示例剧本
- hosts: all
become: true
tasks:
- name: 应用基础配置
include_role:
name: coaxial.base
许可证
MIT
作者信息
Coaxial (64b.it)