File tree Expand file tree Collapse file tree 1 file changed +17
-4
lines changed Expand file tree Collapse file tree 1 file changed +17
-4
lines changed Original file line number Diff line number Diff line change @@ -73,16 +73,29 @@ tee playbook.yml << EOF
7373 workflow_template_var: "$WORKFLOW_TEMPLATE "
7474 project_var: "$CONTROLLER_PROJECT "
7575 extra_vars: "$EXTRA_VARS "
76+ scm_url: "$scm_url "
77+ scm_branch: "$scm_branch "
78+ scm_refspec: "$scm_refspec "
7679
7780 - name: print out extra_vars
7881 debug:
7982 msg:
8083 - "extra vars are {{ extra_vars }}"
8184
82- - name: sync project update
83- awx.awx.project_update:
84- project: "{{ project_var }}"
85- wait: true
85+ - name: project update and sync
86+ block:
87+ - name: update project
88+ awx.awx.project:
89+ name: "{{ project_var }}"
90+ state: present
91+ scm_url: "$scm_url "
92+ scm_branch: "$scm_branch "
93+ scm_refspec: "$scm_refspec "
94+
95+ - name: sync project update
96+ awx.awx.project_update:
97+ project: "{{ project_var }}"
98+ wait: true
8699 when: project_var|length > 0
87100
88101 - name: Launch a job template with extra_vars on remote controller instance
You can’t perform that action at this time.
0 commit comments