Skip to content

Commit 08a863a

Browse files
committed
Update entrypoint.sh
1 parent dde304f commit 08a863a

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

entrypoint.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ tee playbook.yml << EOF
4848
controller_username: "$CONTROLLER_USERNAME"
4949
controller_password: "$CONTROLLER_PASSWORD"
5050
controller_host: "$CONTROLLER_HOST"
51+
register: job_output
5152
5253
- name: Wait for job
5354
awx.awx.job_wait:
@@ -76,4 +77,11 @@ echo "AAP Github Action - Executing Automation Job on Automation controller"
7677

7778
/usr/local/bin/ansible-playbook playbook.yml
7879

80+
if [ $? -eq 0 ]; then
81+
echo "Ansible Job has executed successfully"
82+
else
83+
echo "Ansible Job has failed"
84+
exit 1
85+
fi%
86+
7987
echo "END OF AAP - Automation controller Github Action"

0 commit comments

Comments
 (0)