mirror of
https://github.com/ansible/awx.git
synced 2026-02-26 23:46:05 -03:30
do not split JT callback jobs
This commit is contained in:
@@ -3369,6 +3369,7 @@ class JobTemplateCallback(GenericAPIView):
|
|||||||
if extra_vars is not None and job_template.ask_variables_on_launch:
|
if extra_vars is not None and job_template.ask_variables_on_launch:
|
||||||
extra_vars_redacted, removed = extract_ansible_vars(extra_vars)
|
extra_vars_redacted, removed = extract_ansible_vars(extra_vars)
|
||||||
kv['extra_vars'] = extra_vars_redacted
|
kv['extra_vars'] = extra_vars_redacted
|
||||||
|
kv['_prevent_sharding'] = True # will only run against 1 host, so no point
|
||||||
with transaction.atomic():
|
with transaction.atomic():
|
||||||
job = job_template.create_job(**kv)
|
job = job_template.create_job(**kv)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user