FIX: 更新工作流执行实际的节点修复
Simple Test / test (push) Successful in 5s
Details
Simple Test / test (push) Successful in 5s
Details
- 添加 ansible/** 路径监听 - 执行 fix-nomad-nodes.yml 修复异常节点 - 目标节点: ch4, hcp1, warden, ash1d
This commit is contained in:
parent
09dca62603
commit
ea85f807d0
|
|
@ -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: |
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue