mirror of
https://github.com/prometheus-community/ansible
synced 2025-02-18 13:48:25 +00:00
Move role repo discovery to a script to avoid shell escaping issues. * Fix up argument_specs.yml. Signed-off-by: prombot <prometheus-team@googlegroups.com>
6 lines
227 B
Bash
Executable file
6 lines
227 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
for defaults_file in roles/*/vars/main.yml ; do
|
|
role="$(echo "${defaults_file}" | cut -f2 -d'/')"
|
|
yq eval "[{\"repo\": ._${role}_repo, \"role\": \"${role}\"}]" "${defaults_file}"
|
|
done | yq -o json -I=0
|