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