russia9.initial_server_setup

角色名称

用于初始服务器设置的角色:安装所需的软件包,配置sshd和sudo

要求

无。

角色变量

可用变量:

  • create_user - 是否创建自定义用户(默认值:True注意: 如果此变量设置为False,请将permit_root_login设置为yes
  • username - 自定义用户的用户名(默认值:server
  • ssh_key - ssh公钥的路径(默认值:$HOME/.ssh/id_ecdsa
  • ssh_port - sshd_config中的端口(默认值:22
  • permit_root_login - sshd_config中的PermitRootLogin(默认值:no
  • max_auth_tries - sshd_config中的MaxAuthTries(默认值:5
  • password_authentication - sshd_config中的PasswordAuthentication(默认值:no
  • setup_firewall - 是否设置防火墙(默认值:True

依赖关系

无。

许可证

GPLv3

作者信息

角色作者可以在此包含联系信息或网站(不允许使用HTML)。

安装
ansible-galaxy install russia9.initial_server_setup
许可证
gpl-3.0
下载
95
拥有者
DevOps, Go developer