From b39b32a48c56547b5e70b9d70d5bcf5681294ce8 Mon Sep 17 00:00:00 2001 From: Rong Zhang Date: Mon, 29 Oct 2018 15:59:25 +0800 Subject: [PATCH] Fix set coreos hostname failed (#3599) need set hostname by kubeadm --- roles/bootstrap-os/tasks/main.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/roles/bootstrap-os/tasks/main.yml b/roles/bootstrap-os/tasks/main.yml index f2d441ad5..89622f2f2 100644 --- a/roles/bootstrap-os/tasks/main.yml +++ b/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