[ANSIBLE] Automated PR for dagu-mariadb-bkup-config-check_2025-09-13T08-18-48 - #18 #18

Closed
gitea-sonarqube-bot wants to merge 48 commits from dagu-mariadb-bkup-config-check_2025-09-13T08-18-48 into main
2 changed files with 9 additions and 8 deletions
Showing only changes of commit 4fd3238857 - Show all commits
+1 -1
View File
@@ -49,6 +49,6 @@ jobs:
- name: Validate DAGs
run: |
for dag in $(find ${DAGS_PATH} -type f -name "*.yaml" -a ! -name "*example*"); do
echo "Validating ${dag}..."
echo "========Validating ${dag}========"
dagu dry "${dag}"
done
+8 -7
View File
@@ -26,14 +26,15 @@
ansible.builtin.set_fact:
vault_keys: >-
{{
(
dag_templates
| map('file', 'r')
| map('regex_findall',
"lookup\\('community.hashi_vault.vault_kv2_get',\\s*'[^']+',\\s*engine_mount_point='[^']+',\\s*url=[^,]+,\\s*token=[^\\)]+\\)\\['secret'\\]\\['([^']+)'\\]")
| list
) | default([])
dag_templates
| map('file', 'r')
| select('string')
| map('regex_findall',
"lookup\\('community.hashi_vault.vault_kv2_get',\\s*'[^']+',\\s*engine_mount_point='[^']+',\\s*url=[^,]+,\\s*token=[^\\)]+\\)\\['secret'\\]\\['([^']+)'\\]")
| sum(start=[])
}}
when: dag_templates | length > 0
- name: Warn if any Vault keys might be missing
loop: "{{ vault_keys }}"