only run playbook when tag is present
All checks were successful
Deploy Containers / Prepare (push) Successful in 3s

This commit is contained in:
2025-07-29 23:20:29 -04:00
parent 67976d5317
commit 9f07937682

View File

@@ -10,10 +10,11 @@ if [ ! -z "$new_tasks" ]; then
for task in "${new_tasks[@]}"; do
ansible_tag=$(echo "$task" | awk -F/ '{print $2}')
if [[ "$tag" != "all.yml" && "$tag" != "all.template.yml" && "$tag" != "main.yml" ]] ; then
if [[ "$ansible_tag" != "all.yml" && "$ansible_tag" != "all.template.yml" && "$ansible_tag" != "main.yml" ]] ; then
tag=${ansible_tag%.*}_deploy
echo $tag
if [[ "$tag" != "_deploy" ]] ; then
ansible-playbook main.yml --tags "$tag" --vault-password-file ~/.vault_pass.txt
fi
fi
done
fi