From b1929b7680d3d94fac084ab59ce800c51e05d44c Mon Sep 17 00:00:00 2001 From: leif160519 Date: Wed, 22 May 2024 23:11:02 +0800 Subject: [PATCH] fix bug --- inventory/hosts | 2 +- playbooks/add-node.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/inventory/hosts b/inventory/hosts index 0e536b5..8bbe619 100644 --- a/inventory/hosts +++ b/inventory/hosts @@ -26,4 +26,4 @@ master node [newnode] -#192.168.31.85 node_name=k8s-node-04 +192.168.31.85 node_name=k8s-node-04 diff --git a/playbooks/add-node.yml b/playbooks/add-node.yml index a301269..bf332b9 100644 --- a/playbooks/add-node.yml +++ b/playbooks/add-node.yml @@ -1,6 +1,6 @@ --- - name: 0.系统初始化 - gather_facts: false + gather_facts: true hosts: newnode roles: - common