Files
homelab-infra/infrastructure/openbao/ansible/roles/openbao_bootstrap/tasks/kv.yml
T
panxiao81 88a02ababa
lint / yaml (push) Has been cancelled
lint / ansible (push) Has been cancelled
lint / terraform (push) Has been cancelled
Establish clean homelab infrastructure baseline
Reorganize the brownfield repository, remove retired and generated artifacts, harden ignore rules, and record the GitOps/IaC redesign.
2026-09-09 16:47:20 +00:00

15 lines
586 B
YAML

---
# KV v2 engine for static agent secrets.
- name: Enable KV v2 at {{ openbao_kv_path }}/
ansible.builtin.command: "bao secrets enable -path={{ openbao_kv_path }} -version=2 kv"
environment: "{{ openbao_cli_env }}"
register: kv_enable
changed_when: kv_enable.rc == 0
failed_when:
- kv_enable.rc != 0
- "'already in use' not in (kv_enable.stderr | default('')) + (kv_enable.stdout | default(''))"
no_log: "{{ openbao_no_log }}"
# Terraform owns this (../terraform). See openbao_config_managed_by_terraform.
when: not openbao_config_managed_by_terraform | bool