Files
karpenok c7adefd95a
ansible-deploy / plan (push) Successful in 2s
ansible-lint / lint (push) Successful in 2s
ansible-deploy / deploy (core-net, ) (push) Successful in 21s
ansible-deploy / deploy (opnsense, ) (push) Successful in 10s
feat(traefik,opnsense): expose opnsense.gunihome.ru LAN-only with TLS and update Agent Vault host
2026-11-17 15:36:46 +07:00

28 lines
1.1 KiB
YAML

---
- name: Маршрутизатор OPNsense
hosts: opnsense
gather_facts: false
roles:
- role: opnsense/netbird
tags: [netbird]
- role: opnsense/xray
tags: [xray]
post_tasks:
- name: Зарегистрировать OPNsense в Agent Vault
ansible.builtin.include_role:
name: agent_vault_service
vars:
agent_vault_service_name: opnsense
agent_vault_service_description: >-
Маршрутизатор OPNsense (opnsense.gunihome.ru): статус системы, интерфейсы,
правила фаервола, маршруты, NetBird и Xray. Read-only доступ (GET) через
Basic Auth (OPNSENSE_API_KEY / OPNSENSE_API_SECRET).
agent_vault_service_host: "opnsense.gunihome.ru:443"
agent_vault_service_paths: ["/api"]
agent_vault_service_methods: [GET]
agent_vault_service_credential_type: basic
agent_vault_secret_path: /services/opnsense
agent_vault_secret_username_key: OPNSENSE_API_KEY
agent_vault_secret_password_key: OPNSENSE_API_SECRET
tags: [agent_vault, netbird, xray]