We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aba4b72 commit e94c6d4Copy full SHA for e94c6d4
playbooks/oracle_password_rotation/all_password_rotation/tasks/rotate_system_passwords.yml
@@ -1,10 +1,12 @@
1
+# Get the database role for none OEM databases
2
- name: Get Database Role
3
script: ../../../../common/files/get_database_role.sh
4
register: getdatabaserole
5
changed_when: false
6
+ when: target_environment_name is not search('hmpps-oem')
7
8
- name: Change Database Password
- when: getdatabaserole.stdout | trim == 'PRIMARY'
9
+ when: (getdatabaserole.stdout | default() | trim == 'PRIMARY') or (target_environment_name is search('hmpps-oem'))
10
block:
11
- name: Get New Password for {{ db_username }}
12
include_tasks: create_random_password.yml
0 commit comments