Launching a Job TemplateAnsible Tower makes it simple to launch a job based on a Job Template from Tower’s API or by using the tower-cli command line tool.Launching a Job Template also:. Creates a Job Record. Gives that Job Record all of the attributes on the Job Template, combined with certain data you can give in this launch endpoint (“runtime” data).
Runs Ansible with the combined data from the JT and runtime dataRuntime data takes precedence over the Job Template data, contingent on the ask onlaunch field on the job template being set to True. For example, a runtime credential is only accepted if the Job Template has askcredentialonlaunch set to True.Launching from Job Templates via the API follows the following workflow:.GET The response will contain data such as jobtemplatedata and defaults which give information about the job template.Inspect returned data for runtime data that is needed to launch. Inspecting the OPTIONS of the launch endpoint may also help deduce what POST fields are allowed.
Ansible Tower makes it simple to launch a job based on a Job Template from Tower’s API or by using the
tower-cli command line tool.
Launching a Job Template also:
Nov 28, 2019 Clash Royale was launched in early 2016 from Supercell.Clash Royale is a brand new, real-time, head-to-head battle game set in the Clash Universe. A breakthrough in the gameplay by adding a real-time strategy, MOBA and cards and other elements, tower defense with live real-time duel 1v1 play become popular around the world, brave challengers, Join the exciting Clash Royale arena Now!
Runtime data takes precedence over the Job Template data, contingent on the
ask_ _on_launch field on the job template being set to True. For example, a runtime credential is only accepted if the Job Template has ask_credential_on_launch set to True.
Launching from Job Templates via the API follows the following workflow:
The POST will return data about the job and information about whether the runtime data was accepted. The job id is given in the
job field to maintain compatibility with tools written before 3.0. The response will look similar to:
In this example, values for
credential and job_tags were given while the job template ask_credential_on_launch and ask_tags_on_launch were False. These were rejected because the job template author did not allow using runtime values for them.
You can see details about the job in this response. To get an updated status, you will need to do a GET request to the job page,
/jobs/4 , or follow the url link in the response. You can also find related links to cancel, relaunch, and so fourth.
Note
When querying a job on a non-execution node, an error message,
stdoutcaptureismissing displays for the result_stdout field and on the related stdout page. In order to generate the stdout, use the format=txt_download query parameter for the related stdout page. This generates the stdout file and any refreshes to either the job or the related std will display the job output.
Note
You cannot assign a new inventory at the time of launch to a scan job. Scan jobs must be tied to a fixed inventory.
Note
You cannot change the Job Type at the time of launch to or from the type of “scan”. The
ask_job_type_on_launch option only enables you to toggle “run” versus “check” at launch time.
11.1.
|
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
January 2023
Categories |