-
Notifications
You must be signed in to change notification settings - Fork 3.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ansible Provisioning Callback error #3807
Labels
Comments
Please try: $ curl -v -k -s -i -X POST -H 'Content-Type:application/json' \
--data '{"host_config_key": "xxx-xxxx-xxxx-xxxx"}' \
http://localhost/api/v2/job_templates/8/callback/ Example can be found here (awx_web container): |
Looks like just incorrect usage of the provisioning callback. |
ryanpetrello
pushed a commit
to ryanpetrello/awx
that referenced
this issue
Oct 16, 2019
Allow oauth2 settings to be set in the ui and api
This was referenced Sep 5, 2021
This was referenced Oct 6, 2022
This was referenced Oct 10, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ISSUE TYPE
SUMMARY
AWX provisioning callback not functioning correctly. When I try to use the AWX provisioning callback I get an error of “{"detail":"You do not have permission to perform this action."}
ENVIRONMENT
STEPS TO REPRODUCE
In my Foreman Build I added the necessary Host Parameters to allow the AWX provisioning callback (listed bellow). Once I noticed it failed I pulled the curl command (listed bellow) and got the following error “{"detail":"You do not have permission to perform this action."}”
ansible_tower_provisioning: true
ansible_tower_fqdn: “IP of My AWX Server”
ansible_job_template_id: 12
ansible_host_config_key: cb72a806-cd82-487a-86ce-14b8015b2c02
/usr/bin/curl -k -s http://$SERVIERIP$/api/v2/job_templates/12/callback/ --data cb72a806-cd82-487a-86ce-14b8015b2c02
EXPECTED RESULTS
When I run the curl command I am hoping that on the AWX jobs page I should see that the job template has started and is running a playbook ageist my newly built server.
ACTUAL RESULTS
When I run the curl command I receive permission error: {"detail":"You do not have permission to perform this action."}
ADDITIONAL INFORMATION
sosreport-tower-2019-05-02-lgvfmpq.tar.gz
The text was updated successfully, but these errors were encountered: