Browse Source

Fix set coreos hostname failed (#3599)

need set hostname by kubeadm
pull/3600/head
Rong Zhang 6 years ago
committed by k8s-ci-robot
parent
commit
b39b32a48c
1 changed files with 0 additions and 1 deletions
  1. 1
      roles/bootstrap-os/tasks/main.yml

1
roles/bootstrap-os/tasks/main.yml

@ -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

Loading…
Cancel
Save