mirror of
https://github.com/ansible/awx.git
synced 2026-05-19 14:57:39 -02:30
8049-expose execution node var for playbook (#13418)
Expose execution node var for playbook --------- Co-authored-by: Lucas Benedito <lbenedit@redhat.com>
This commit is contained in:
@@ -831,6 +831,9 @@ class Job(UnifiedJob, JobOptions, SurveyJobMixin, JobNotificationMixin, TaskMana
|
||||
for name in JOB_VARIABLE_PREFIXES:
|
||||
r['{}_job_template_id'.format(name)] = self.job_template.pk
|
||||
r['{}_job_template_name'.format(name)] = self.job_template.name
|
||||
if self.execution_node:
|
||||
for name in JOB_VARIABLE_PREFIXES:
|
||||
r['{}_execution_node'.format(name)] = self.execution_node
|
||||
return r
|
||||
|
||||
'''
|
||||
|
||||
Reference in New Issue
Block a user