Skip to content

Commit ca4cad7

Browse files
Dba 721 links (#426)
* Delius password retrieval * Additional Mis target environments * Search for Delius account name
1 parent fcea47e commit ca4cad7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

playbooks/mis_database_links/playbook.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,11 @@
6464
secret: "/oracle/database/EMREP/shared-passwords"
6565
users:
6666
- sysman:
67+
delius_account_name: "delius-core-{{ aws_environment }}"
6768
delius_environment_name: "{{ environment_name | regex_replace('mis', 'core') }}"
6869

6970
- set_fact:
70-
sql_cmd: "HOST aws ssm get-parameters --with-decryption --name account_ids | jq -r .Parameters[].Value | jq -r 'with_entries(if (.key|test(\\\"{{ delius_environment_name }}\\\")) then ( {key: .key, value: .value}) else empty end)' | jq -r 'to_entries|.[0].value'"
71+
sql_cmd: "HOST aws ssm get-parameters --with-decryption --name account_ids | jq -r .Parameters[].Value | jq -r 'with_entries(if (.key|test(\\\"{{ delius_account_name }}\\\")) then ( {key: .key, value: .value}) else empty end)' | jq -r 'to_entries|.[0].value'"
7172

7273
- name: Get SYSMAN Password
7374
include_tasks: "{{ playbook_dir }}/../../common/tasks/get_facts.yml"

0 commit comments

Comments
 (0)