matic-insurance.hostname

角色名称

在基于Debian的系统上使用/etc/hosts设置主机名。

基于Debian的发行版鼓励您设置非FQDN主机名([更多信息](More: http://serverfault.com/questions/331936/setting-the-hostname-fqdn-or-short-name)),因此该角色使用FQDN主机名的第一部分作为主机名。

要求

此角色仅在基于Debian的系统上工作。已在Ubuntu 14.04上测试。

角色变量

您需要提供:

  • fqdn_hostname:FQDN主机名

您还可以覆盖:

  • short_hostname:在/etc/hostname中使用的主机名。默认值:fqdn_hostname的第一部分

依赖关系

没有依赖关系

示例剧本

- role: matic-insurance.hostname
  fqdn_hostname: '{{ inventory_hostname }}'
  tags: ['hostname']

许可证

MIT

作者信息

Matic是一个连接贷款方和借款人的通信平台,帮助借款人办理新房贷款。借款人现在可以了解他们在贷款过程中的进展以及完成贷款所需的步骤。

关于项目

Set and persist hostname on Debian-based system.

安装
ansible-galaxy install matic-insurance.hostname
许可证
mit
下载
598