Fix set coreos hostname failed (#3599)

need set hostname by kubeadm
This commit is contained in:
Rong Zhang 2018-10-29 15:59:25 +08:00 committed by k8s-ci-robot
parent dbe99b59a7
commit b39b32a48c

View file

@ -65,7 +65,6 @@
command: "hostnamectl set-hostname {{inventory_hostname}}"
register: hostname_changed
when:
- ansible_hostname == 'localhost'
- ansible_distribution in ['openSUSE Tumbleweed'] or ansible_os_family in ['CoreOS', 'Container Linux by CoreOS']
- override_system_hostname