Allow starting job with job_tags for superadmins#137
Allow starting job with job_tags for superadmins#137styxit wants to merge 6 commits intoansible:masterfrom styxit:job-starting-with-tags
Conversation
This actually sends the `/me` call to the api and stores the response.
The `/me` call should not be made every time. Only when needed.
|
Thanks for the contribution! I see what you're doing with the My initial thoughts here are to:
|
In that case, how can a job be created without a job_template if the only parameters for this command are: |
|
Having the |
Indeed, that's why the /jobs/ POST call supports a
If that flag is not given, you can't create a new job based on a template. So thats not what we're trying to achieve here - we just want to run a job, based on a template, with tags. |
Thanks for bringing this up, I realize that I was wrong about what the intent was. We still want to default to the |
|
We have implemented another way to get this functionality in PR #184. The concern was that logic to deal with a POST to the |
|
We should have this functionality covered, and will be releasing it within the next week or so. Please don't hesitate to ask if you want to know how to do a particular task with tower-cli in that release. And thanks so much for helping to improve the code base. |
Allow super admins to start jobs through
POST /jobsandGET /jobs/%d/start. Which allows the use of providing tags. For other users, use the template/launchendpoint.In order to do this, a call to
/mehad to be made to determine if a user has superuser privileges.If this is not the way to go, feel free to close this pull request.
See issue: #136