enhance CD
This commit is contained in:
parent
6126bd9e5a
commit
74d9d3e56f
1 changed files with 2 additions and 1 deletions
|
@ -84,7 +84,7 @@ jobs:
|
|||
# Add cases for other folders/hosts
|
||||
*)
|
||||
echo "Unknown folder: $folder"
|
||||
continue
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
echo "Triggering AWX Job with target host: $target_host and folder: $folder"
|
||||
|
@ -92,6 +92,7 @@ jobs:
|
|||
-H "Authorization: Bearer ${{ secrets.AWX_API_TOKEN }}" \
|
||||
-d "{\"extra_vars\": {\"target_host\": \"$target_host\", \"folder\": \"$folder\"}}" \
|
||||
"https://awx.mafyuh.xyz/api/v2/job_templates/13/launch/" > /dev/null 2>&1
|
||||
echo "AWX Job Triggered, waiting for logs..."
|
||||
|
||||
sleep 45
|
||||
|
||||
|
|
Loading…
Reference in a new issue