Skip to content

Commit de4c52c

Browse files
committed
sync
1 parent 215ab16 commit de4c52c

File tree

2 files changed

+21
-1
lines changed

2 files changed

+21
-1
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
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 }}

entrypoint.sh

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff 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+
168188
EOF
169189

170190
echo "AAP Github Action - Executing Automation Job on Automation controller"

0 commit comments

Comments
 (0)