ansible-core-net / deploy (push) Canceled after 0s
ansible-core-secrets / deploy (push) Canceled after 0s
ansible-ger-nod-02 / deploy (push) Canceled after 0s
ansible-opnsense / deploy (push) Canceled after 0s
ansible-core-mon / deploy (push) Successful in 58s
ansible-rus-central / deploy (push) Successful in 44s
Prometheus остаётся для LAN. Нода отдаёт метрики через vmagent, а панель ходит на неё по отдельному ключу NetBird, не через группу роутеров. Co-authored-by: Cursor <cursoragent@cursor.com>
43 lines
1.4 KiB
YAML
43 lines
1.4 KiB
YAML
name: ansible-ger-nod-02
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
paths:
|
|
- 'ansible/ansible.cfg'
|
|
- 'ansible/ci/**'
|
|
- 'ansible/roles/ger-nod-02/**'
|
|
- 'ansible/roles/netbird_client/**'
|
|
- 'ansible/roles/vmagent/**'
|
|
- 'ansible/roles/host/**'
|
|
- 'ansible/playbooks/ger-nod-02.yml'
|
|
- 'ansible/playbooks/host.yml'
|
|
- 'ansible/playbooks/site.yml'
|
|
- 'ansible/inventories/prod/hosts.yml'
|
|
- 'ansible/inventories/prod/host_vars/ger-nod-02.yml'
|
|
- 'ansible/inventories/prod/group_vars/**'
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
deploy:
|
|
runs-on: homelab
|
|
container:
|
|
image: homelab-ansible:latest
|
|
timeout-minutes: 45
|
|
steps:
|
|
- name: Деплой ger-nod-02
|
|
env:
|
|
INFISICAL_CLIENT_ID: ${{ secrets.INFISICAL_CLIENT_ID }}
|
|
INFISICAL_CLIENT_SECRET: ${{ secrets.INFISICAL_CLIENT_SECRET }}
|
|
run: |
|
|
set -eu
|
|
rm -rf "${HOME}/homelab-infra"
|
|
git clone http://192.168.1.217:3000/karpenok/homelab-infra.git "${HOME}/homelab-infra"
|
|
sha="${GITHUB_SHA:-${GITEA_SHA:-}}"
|
|
if [ -n "${sha}" ]; then
|
|
git -C "${HOME}/homelab-infra" checkout "${sha}"
|
|
fi
|
|
chmod -R go-w "${HOME}/homelab-infra"
|
|
exec bash "${HOME}/homelab-infra/ansible/ci/deploy-machine.sh" ger-nod-02 "${{ github.event_name }}" "${{ github.event.before }}" "${{ github.sha }}"
|