Skip to content
Snippets Groups Projects
Commit b39b32a4 authored by Rong Zhang's avatar Rong Zhang Committed by k8s-ci-robot
Browse files

Fix set coreos hostname failed (#3599)

need set hostname by kubeadm
parent dbe99b59
Branches
Tags
No related merge requests found
...@@ -65,7 +65,6 @@ ...@@ -65,7 +65,6 @@
command: "hostnamectl set-hostname {{inventory_hostname}}" command: "hostnamectl set-hostname {{inventory_hostname}}"
register: hostname_changed register: hostname_changed
when: when:
- ansible_hostname == 'localhost'
- ansible_distribution in ['openSUSE Tumbleweed'] or ansible_os_family in ['CoreOS', 'Container Linux by CoreOS'] - ansible_distribution in ['openSUSE Tumbleweed'] or ansible_os_family in ['CoreOS', 'Container Linux by CoreOS']
- override_system_hostname - override_system_hostname
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment