接入 OpenBao 受鉴权监控并修复快照续期 (#162)
yaml / yaml (push) Successful in 35s
terraform / validate (push) Successful in 1m43s
ansible / collection-test (push) Successful in 1m55s
ansible / lint (push) Successful in 2m48s

Co-authored-by: panxiao81 <[email protected]>
This commit was merged in pull request #162.
This commit is contained in:
2026-09-25 20:39:31 +00:00
committed by panxiao81
parent 52322116f9
commit 834f654941
12 changed files with 213 additions and 10 deletions
@@ -17,11 +17,11 @@
path: /etc/openbao/snapshot.token
register: snap_tok_stat
- name: Create a periodic snapshot token (once)
- name: Create or explicitly rotate the periodic snapshot token
ansible.builtin.command: "bao token create -policy=snapshot -period=768h -orphan -field=token"
environment: "{{ openbao_cli_env }}"
register: snap_tok_new
when: not snap_tok_stat.stat.exists
when: (not snap_tok_stat.stat.exists) or (openbao_snapshot_rotate_token | bool)
changed_when: snap_tok_new.rc == 0
no_log: true
@@ -32,7 +32,7 @@
owner: root
group: root
mode: "0600"
when: not snap_tok_stat.stat.exists
when: (not snap_tok_stat.stat.exists) or (openbao_snapshot_rotate_token | bool)
no_log: true
- name: Ensure the snapshot output directory exists