We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dde304f commit 08a863aCopy full SHA for 08a863a
entrypoint.sh
@@ -48,6 +48,7 @@ tee playbook.yml << EOF
48
controller_username: "$CONTROLLER_USERNAME"
49
controller_password: "$CONTROLLER_PASSWORD"
50
controller_host: "$CONTROLLER_HOST"
51
+ register: job_output
52
53
- name: Wait for job
54
awx.awx.job_wait:
@@ -76,4 +77,11 @@ echo "AAP Github Action - Executing Automation Job on Automation controller"
76
77
78
/usr/local/bin/ansible-playbook playbook.yml
79
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
+
87
echo "END OF AAP - Automation controller Github Action"
0 commit comments