File tree Expand file tree Collapse file tree 2 files changed +21
-1
lines changed Expand file tree Collapse file tree 2 files changed +21
-1
lines changed Original file line number Diff line number Diff line change 2323 steps :
2424 - name : Load the ansible-cloud action
2525 id : controller_job
26- uses :
ansible-cloud/[email protected] .17 26+ uses :
ansible-cloud/[email protected] .18 2727 with :
2828 controller_host : ${{ secrets.CONTROLLER_HOST }}
2929 controller_username : ${{ secrets.CONTROLLER_USERNAME }}
Original file line number Diff line number Diff line change @@ -165,6 +165,26 @@ tee playbook.yml << EOF
165165 when: job_template_var|length > 0 or workflow_template_var|length > 0
166166 debug:
167167 var: playbook_output.json.content
168+
169+ - name: revert project settings back to original
170+ awx.awx.project:
171+ name: "{{ project_var }}"
172+ state: present
173+ description: "{{ project_info[0].description }}"
174+ organization: "{{ project_info[0].organization }}"
175+ default_environment: "{{ project_info[0].default_environment }}"
176+ scm_type: "{{ project_info[0].scm_type }}"
177+ scm_url: "{{ project_info[0].scm_url }}"
178+ scm_branch: "{{ project_info[0].scm_branch }}"
179+ scm_refspec: "{{ project_info[0].scm_refspec }}"
180+ # credential: "{{ project_info[0].credential }}"
181+ scm_clean: "{{ project_info[0].scm_clean }}"
182+ scm_delete_on_update: "{{ project_info[0].scm_delete_on_update }}"
183+ scm_track_submodules: "{{ project_info[0].scm_track_submodules }}"
184+ scm_update_on_launch: "{{ project_info[0].scm_update_on_launch }}"
185+ allow_override: "{{ project_info[0].allow_override }}"
186+ when: project_var|length > 0
187+
168188EOF
169189
170190echo " AAP Github Action - Executing Automation Job on Automation controller"
You can’t perform that action at this time.
0 commit comments