권장되는 방법이 나에게 잘 작동하지 않는 것 같다FQDN을 어떻게 설정할 수 있습니까?
- name: Set hostname
hostname: name=mx.mydomain.net
재부팅 한 후, 당신은 내가, FQDN으로 /etc/hosts
아무런 문제가 없습니다 볼 수 있습니다.
[email protected]:~# cat /etc/hosts
127.0.0.1 localhost
127.0.1.1 mail mail
# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
[email protected]:~# cat /etc/hostname
mx.mydomain.net
[email protected]:~# hostname
mx.mydomain.net
[email protected]:~# hostname -f
hostname: Name or service not known
saltstack 남자들이 맞나요? https://github.com/saltstack-formulas/hostsfile-formula/blob/master/hostsfile/hostname.sls 여기에서 작업을 복사합니다 – holms