From ea85f807d05fb3a9feaeae6edd17bb7d96da01c0 Mon Sep 17 00:00:00 2001 From: Houzhong Xu Date: Thu, 9 Oct 2025 13:06:00 +0000 Subject: [PATCH] =?UTF-8?q?FIX:=20=E6=9B=B4=E6=96=B0=E5=B7=A5=E4=BD=9C?= =?UTF-8?q?=E6=B5=81=E6=89=A7=E8=A1=8C=E5=AE=9E=E9=99=85=E7=9A=84=E8=8A=82?= =?UTF-8?q?=E7=82=B9=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 添加 ansible/** 路径监听 - 执行 fix-nomad-nodes.yml 修复异常节点 - 目标节点: ch4, hcp1, warden, ash1d --- .gitea/workflows/deploy-nomad.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/deploy-nomad.yml b/.gitea/workflows/deploy-nomad.yml index b3640b7..054cbab 100644 --- a/.gitea/workflows/deploy-nomad.yml +++ b/.gitea/workflows/deploy-nomad.yml @@ -6,6 +6,7 @@ on: paths: - 'nomad-configs/**' - 'deployment/ansible/**' + - 'ansible/**' workflow_dispatch: jobs: @@ -22,9 +23,9 @@ jobs: - name: Deploy Nomad Configurations run: | - echo "Deploying Nomad configurations using Ansible..." - cd deployment/ansible - ansible-playbook -i inventories/production/inventory.ini playbooks/deploy-nomad-config.yml + echo "修复 Nomad 节点配置..." + cd ansible + ansible-playbook -i inventory/hosts.yml fix-nomad-nodes.yml --limit "ch4,hcp1,warden,ash1d" -v - name: Verify Deployment run: |