Skip to content

Commit 36ce12b

Browse files
Merge pull request #250 from ministryofjustice/DBA-670
Dba 670
2 parents 1e153ef + 436f2fc commit 36ce12b

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

.github/workflows/oracle-db-deinstall.yml

+2-3
Original file line numberDiff line numberDiff line change
@@ -90,10 +90,9 @@ jobs:
9090
shell: bash
9191
run: |
9292
environment_name="environment_name_$(echo ${{ github.event.inputs.TargetEnvironment }} | sed 's/delius-core-dev/delius_core_development_dev/;s/delius-core-test/delius_core_test_test/;s/delius-core-training/delius_core_test_training/;s/delius-core-stage/delius_core_preproduction_stage/;s/delius-core-pre-prod/delius_core_preproduction_pre_prod/;s/delius-core-prod/delius_core_production_prod/')"
93-
IFS=","
94-
for target in ${{ github.event.inputs.TargetHost }}
93+
IFS="," read -ra targets <<< "${{ github.event.inputs.TargetHost }}"
94+
for target in "${targets[@]}"
9595
do
96-
IFS=""
9796
TargetHost+=${environment_name}_${target},
9897
done
9998
echo "TargetHost=${TargetHost%?}" >> $GITHUB_OUTPUT

playbooks/oracle_release_update/deinstall_oracle.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
# Run the following to Update OEM Targets
1010
# This playbook runs ONLY on a single target host because emcli is installed
11-
- hosts: "{{ groups[target_hosts][0] }}"
11+
- hosts: "{{ hostvars.localhost.deinstalled_targets[0] }}"
1212
gather_facts: no
1313
become: yes
1414
become_user: oracle

0 commit comments

Comments
 (0)