Files
homelab-infra/ansible/playbooks/opnsense.yml
T
karpenok ef8179e96e
ansible-deploy / plan (push) Successful in 2s
ansible-lint / lint (push) Successful in 3s
ansible-deploy / deploy (core-net, ) (push) Successful in 46s
ansible-deploy / deploy (opnsense, ) (push) Successful in 7s
chore: remove temporary NetBird and Authentik cleanup tasks from playbooks
2026-11-19 10:59:29 +07:00

26 lines
1.1 KiB
YAML

---
- name: Маршрутизатор OPNsense
hosts: opnsense
gather_facts: false
roles:
- 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): статус системы, интерфейсы,
правила фаервола, маршруты и 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, xray]