You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
#!/bin/bash
|
|
|
|
function format_dir(){
|
|
dir="${1}"
|
|
yaml_files="$(find ${dir} -type f -name "*.yml")"
|
|
for f in $yaml_files
|
|
do
|
|
yamlfmt $f -w
|
|
done
|
|
}
|
|
|
|
format_dir roles
|
|
format_dir playbooks
|
|
format_dir host_vars
|
|
format_dir group_vars
|
|
format_dir .github/workflows
|