@@ -162,11 +162,11 @@ tee playbook.yml << EOF
162162 - name: figure out creds for JT
163163 set_fact:
164164 credentials: "{% if template_info[0].summary_fields['credentials'] | length>0 %}{% for cred in template_info[0].summary_fields['credentials'] %}{{ cred.name }}{% if loop.length > 1 %},{% endif %}{% endfor %}{% endif %}"
165-
165+
166166 - name: figure out creds for JT
167167 set_fact:
168168 credentials: "{% if credentials | length>0 %}{{ credentials | split(',') }}{% endif %}"
169-
169+
170170 - name: update project for scm allow_override and scm_update_on_launch
171171 awx.awx.project:
172172 name: "{{ project_var }}"
@@ -185,7 +185,7 @@ tee playbook.yml << EOF
185185 scm_update_on_launch: True
186186 allow_override: True
187187 validate_certs: "$CONTROLLER_VERIFY_SSL "
188-
188+
189189 # This task is only updating ask_scm_branch_on_launch
190190 - name: update job template to turn ask_scm_branch_on_launch
191191 awx.awx.job_template:
@@ -277,11 +277,15 @@ tee playbook.yml << EOF
277277 extra_vars: "{{ extra_vars | default(omit, true) }}"
278278 validate_certs: "$CONTROLLER_VERIFY_SSL "
279279 scm_branch: "{{ scm_branch | default(omit, true) }}"
280- register: job_output
280+ register: workflow_output
281+
282+ - name: print out workflow_output
283+ debug:
284+ var: workflow_output
281285
282286 - name: Wait for workflow
283287 awx.awx.job_wait:
284- job_id: "{{ job_output .id }}"
288+ job_id: "{{ workflow_output .id }}"
285289 job_type: workflow_jobs
286290 timeout: 3600
287291 validate_certs: "$CONTROLLER_VERIFY_SSL "
0 commit comments