Files
homelab-infra/ansible/playbooks/opnsense.yml
T
karpenok 8061dd7604
ansible-deploy / plan (push) Successful in 1s
ansible-lint / lint (push) Successful in 3s
ansible-deploy / deploy (opnsense, ) (push) Successful in 10s
feat(agent_vault,opnsense): support basic auth and register OPNsense API
2026-11-17 15:27:02 +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 (192.168.1.1:4433): статус системы, интерфейсы,
правила фаервола, маршруты, NetBird и Xray. Read-only доступ (GET) через
Basic Auth (OPNSENSE_API_KEY / OPNSENSE_API_SECRET).
agent_vault_service_host: "{{ opnsense_host }}"
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]