Skip to content

Commit b67cbae

Browse files
authored
Merge pull request #216 from ministryofjustice/DBA-ANSIBLE-AWS-SSM-BUCKET-NAME
Dba ansible aws ssm bucket name
2 parents 9d7e298 + 0f971c6 commit b67cbae

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

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

+5-5
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ jobs:
184184
ansible/roles/secretsmanager-passwords
185185
ansible/roles/get-modernisation-platform-facts
186186
path: roles
187-
ref: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.SourceCodeVersion || 'main' }}
187+
ref: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.SourceConfigVersion || 'main' }}
188188
fetch-depth: 0
189189

190190
- name: Configure AWS Credentials
@@ -201,7 +201,7 @@ jobs:
201201
run: |
202202
export ANSIBLE_CONFIG=$ansible_config
203203
ln -s $PWD/roles/ansible/roles $PWD/operations/playbooks/oracle_backup/roles
204-
$backup_command -i $inventory -e rman_target=$RmanTarget -e daily_weekly=$Period -e enable_trace=$EnableTrace $VerboseOutput
204+
$backup_command -i $inventory -e ansible_aws_ssm_bucket_name=${{ vars.ANSIBLE_AWS_SSM_BUCKET_NAME }} -e rman_target=$RmanTarget -e daily_weekly=$Period -e enable_trace=$EnableTrace $VerboseOutput
205205
206206
- name: Start Ansible Backup On First Standby (If Exists) If Primary Backup Failed
207207
if: ${{ steps.backup.outcome == 'failure' && contains(env.RmanTarget,'primarydb') }}
@@ -211,7 +211,7 @@ jobs:
211211
then
212212
export ANSIBLE_CONFIG=$ansible_config
213213
ln -s $PWD/roles/ansible/roles $PWD/operations/playbooks/oracle_backup/roles
214-
$backup_command -i $inventory -e rman_target=${RmanTarget/primarydb/standbydb1} -e daily_weekly=$Period -e enable_trace=$EnableTrace $VerboseOutput
214+
$backup_command -i $inventory -e ansible_aws_ssm_bucket_name=${{ vars.ANSIBLE_AWS_SSM_BUCKET_NAME }} -e rman_target=${RmanTarget/primarydb/standbydb1} -e daily_weekly=$Period -e enable_trace=$EnableTrace $VerboseOutput
215215
else
216216
echo "Standby Not Configured"
217217
fi
@@ -220,12 +220,12 @@ jobs:
220220
run: |
221221
export ANSIBLE_CONFIG=$ansible_config
222222
ln -s $PWD/roles/ansible/roles $PWD/operations/playbooks/oracle_backup/roles
223-
$validate_command -i $inventory -e rman_target=$RmanTarget -e fix_absent_chunks=$FixAbsentChunks $VerboseOutput
223+
$validate_command -i $inventory -e ansible_aws_ssm_bucket_name=${{ vars.ANSIBLE_AWS_SSM_BUCKET_NAME }} -e rman_target=$RmanTarget -e fix_absent_chunks=$FixAbsentChunks $VerboseOutput
224224
225225
- name: Start Ansible Delete DBIDs Not In Use
226226
if: ${{ env.DeleteDefunct == 'yes' }}
227227
run: |
228228
export ANSIBLE_CONFIG=$ansible_config
229229
ln -s $PWD/roles/ansible/roles $PWD/operations/playbooks/oracle_backup/roles
230-
$delete_dbids_command -i $inventory -e rman_target=$RmanTarget $VerboseOutput
230+
$delete_dbids_command -i $inventory -e ansible_aws_ssm_bucket_name=${{ vars.ANSIBLE_AWS_SSM_BUCKET_NAME }} -e rman_target=$RmanTarget $VerboseOutput
231231

0 commit comments

Comments
 (0)