From 68db5ab5afeb202051b74e8a6dabe01a0f9f435e Mon Sep 17 00:00:00 2001 From: ranbeersingh1 Date: Fri, 2 Feb 2024 16:43:34 +0000 Subject: [PATCH 1/3] Any environment --- playbooks/oracle_password_rotation/oem_password_rotation.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/playbooks/oracle_password_rotation/oem_password_rotation.yml b/playbooks/oracle_password_rotation/oem_password_rotation.yml index 1d5bdefa..f20698a7 100644 --- a/playbooks/oracle_password_rotation/oem_password_rotation.yml +++ b/playbooks/oracle_password_rotation/oem_password_rotation.yml @@ -4,4 +4,4 @@ become: yes become_user: oracle roles: - - { role: oem_password_rotation, when: environment_name is search('hmpps-oem') } + - { role: oem_password_rotation, when: environment_name is defined ) } From 90db6542ba8aa0a377a8cbd18c15a568ed41cc5b Mon Sep 17 00:00:00 2001 From: ranbeersingh1 Date: Fri, 2 Feb 2024 16:48:45 +0000 Subject: [PATCH 2/3] Remove bracket --- playbooks/oracle_password_rotation/oem_password_rotation.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/playbooks/oracle_password_rotation/oem_password_rotation.yml b/playbooks/oracle_password_rotation/oem_password_rotation.yml index f20698a7..28518de4 100644 --- a/playbooks/oracle_password_rotation/oem_password_rotation.yml +++ b/playbooks/oracle_password_rotation/oem_password_rotation.yml @@ -4,4 +4,4 @@ become: yes become_user: oracle roles: - - { role: oem_password_rotation, when: environment_name is defined ) } + - { role: oem_password_rotation, when: environment_name is defined } From c7286d98fb8c44c1e31b5624d47c2fea2eb08bdd Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Fri, 2 Feb 2024 17:10:20 +0000 Subject: [PATCH 3/3] Commit changes made by code formatters --- .../tasks/non_oem_database_passwords.yml | 3 +-- .../all_password_rotation/tasks/oem_database_passwords.yml | 2 +- .../oracle_password_rotation/database_password_rotation.yml | 5 +---- 3 files changed, 3 insertions(+), 7 deletions(-) diff --git a/playbooks/oracle_password_rotation/all_password_rotation/tasks/non_oem_database_passwords.yml b/playbooks/oracle_password_rotation/all_password_rotation/tasks/non_oem_database_passwords.yml index 7d3b33a3..4e9b9807 100644 --- a/playbooks/oracle_password_rotation/all_password_rotation/tasks/non_oem_database_passwords.yml +++ b/playbooks/oracle_password_rotation/all_password_rotation/tasks/non_oem_database_passwords.yml @@ -1,7 +1,6 @@ - name: Clean Up Broken or Missing Data Guard Wallets when: unlock_system_passwords is not defined block: - - name: Set up oracle database home shell: | . ~/.bash_profile @@ -247,7 +246,7 @@ - name: Rotate Oracle Password include_tasks: rotate_oracle_password.yml - + # Restart Monitoring regardless of success of password rotation always: - name: Re-Enable Monitoring diff --git a/playbooks/oracle_password_rotation/all_password_rotation/tasks/oem_database_passwords.yml b/playbooks/oracle_password_rotation/all_password_rotation/tasks/oem_database_passwords.yml index f9e3afca..64a2329c 100644 --- a/playbooks/oracle_password_rotation/all_password_rotation/tasks/oem_database_passwords.yml +++ b/playbooks/oracle_password_rotation/all_password_rotation/tasks/oem_database_passwords.yml @@ -97,4 +97,4 @@ with_nested: - ["sys", "system", "dbsnmp"] - ["{{ db_configs['RCVCAT']['rcvcat_db_name'] }}", "{{ db_configs['EMREP']['emrepo_db_name'] }}"] - when: unlock_system_passwords is defined \ No newline at end of file + when: unlock_system_passwords is defined diff --git a/playbooks/oracle_password_rotation/database_password_rotation.yml b/playbooks/oracle_password_rotation/database_password_rotation.yml index e14faebe..8531a815 100644 --- a/playbooks/oracle_password_rotation/database_password_rotation.yml +++ b/playbooks/oracle_password_rotation/database_password_rotation.yml @@ -4,7 +4,4 @@ become: yes become_user: oracle roles: - - { - role: all_password_rotation, - when: ( environment_name is defined ) - } + - { role: all_password_rotation, when: ( environment_name is defined ) }