daixijun.bootstrap

daixijun.bootstrap

Build Status Ansible Galaxy GitHub tag (latest SemVer)

系统初始化,主要功能如下:

  • 更新系统软件
  • 修改时区
  • 配置主机名
  • 修改PAM nofile 限制

环境要求

  • RHEL/Centos 6.x / 7.x / 8.x
  • Ansible 2.7+

变量

# 时区,默认为 Asia/Shanghai
bootstrap_timezone: Asia/Shanghai
# 是否更新系统上所有软件,相当于执行 `yum update -y`
bootstrap_upgrade: false
# 主机名,为空时不配置
bootstrap_hostname: ''

依赖

无

使用示例

- hosts: servers
  roles:
      - { role: daixijun.bootstrap, bootstrap_hostname: "hostname.example.com" }

License

BSD

维护者

About

系统初始化

Install
ansible-galaxy install daixijun.bootstrap
GitHub repository
License
Unknown
Downloads
131
Owner