Skip to content

Commit e88542d

Browse files
Martin Jacksoncursoragent
andcommitted
fix(load_secrets): reset secrets_role between early and late plays
set_fact from bootstrap k8s selection persisted on localhost so late phase kept k8s_secret_utils instead of vault_utils when backend is vault. Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent af543fe commit e88542d

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

roles/load_secrets/tasks/main.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
11
---
2+
# set_fact for secrets_role/tasks_from in an early run persists on localhost for the whole
3+
# playbook; reset each time this role runs so late vault path is not skipped after bootstrap.
4+
- name: Reset secrets loader selection for this load_secrets invocation
5+
ansible.builtin.set_fact:
6+
secrets_role: "vault_utils"
7+
tasks_from: "push_parsed_secrets"
8+
29
- name: Set fact for secretStore backend
310
ansible.builtin.set_fact:
411
secrets_backing_store: "{{ values_global.global.secretStore.backend | default('vault') }}"

0 commit comments

Comments
 (0)