Simplify pipeline credential management

This commit is contained in:
2026-09-16 21:35:07 +00:00
parent 8ff0761820
commit de1b191cd2
3 changed files with 12 additions and 48 deletions

View File

@@ -12,7 +12,7 @@
that:
- item.key is string
- item.key is match('^[A-Za-z_][A-Za-z0-9_]*$')
- item.value is none or (item.value is string and item.value | length > 0)
- item.value is string
loop: "{{ dnd_pipeline_secrets | dict2items }}"
loop_control:
label: "{{ item.key }}"
@@ -38,18 +38,6 @@
loop: "{{ dnd_pipeline_secrets | dict2items }}"
loop_control:
label: "{{ item.key }}"
when: item.value is not none
no_log: true
- name: Remove explicitly unmanaged Narratio credentials
become: true
ansible.builtin.file:
path: "/usr/local/etc/narratio/secrets/{{ item.key }}"
state: absent
loop: "{{ dnd_pipeline_secrets | dict2items }}"
loop_control:
label: "{{ item.key }}"
when: item.value is none
no_log: true
- name: Create the Notarius cache root