FIX: 更新工作流执行实际的节点修复
Simple Test / test (push) Successful in 5s Details

- 添加 ansible/** 路径监听
- 执行 fix-nomad-nodes.yml 修复异常节点
- 目标节点: ch4, hcp1, warden, ash1d
This commit is contained in:
Houzhong Xu 2025-10-09 13:06:00 +00:00
parent 09dca62603
commit ea85f807d0
No known key found for this signature in database
GPG Key ID: B44BEB1438F1B46F
1 changed files with 4 additions and 3 deletions

View File

@ -6,6 +6,7 @@ on:
paths: paths:
- 'nomad-configs/**' - 'nomad-configs/**'
- 'deployment/ansible/**' - 'deployment/ansible/**'
- 'ansible/**'
workflow_dispatch: workflow_dispatch:
jobs: jobs:
@ -22,9 +23,9 @@ jobs:
- name: Deploy Nomad Configurations - name: Deploy Nomad Configurations
run: | run: |
echo "Deploying Nomad configurations using Ansible..." echo "修复 Nomad 节点配置..."
cd deployment/ansible cd ansible
ansible-playbook -i inventories/production/inventory.ini playbooks/deploy-nomad-config.yml ansible-playbook -i inventory/hosts.yml fix-nomad-nodes.yml --limit "ch4,hcp1,warden,ash1d" -v
- name: Verify Deployment - name: Verify Deployment
run: | run: |