Simplify pipeline credential management
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user