Skip to content

Commit a54814b

Browse files
committed
- added support to interpret password as hash instead of plaintext in
dbpasswords by setting users[*].password_is_hash=true - revert to module defaults for update_password parameter
1 parent 01ff717 commit a54814b

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

roles/oradb-manage-users/tasks/main.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@
1010
password={{ db_password_cdb }}
1111
mode="{{ db_mode }}"
1212
schema={{ item.1.schema }}
13-
schema_password={{ user_cdb_password }}
14-
schema_password_hash={{ user_cdb_password_hash | default(omit) }}
13+
schema_password={{ item.1.password_is_hash | default(false) | ternary(omit,user_cdb_password) }}
14+
schema_password_hash={{ item.1.password_is_hash | default(false) | ternary(user_cdb_password,omit) }}
1515
profile={{ item.1.profile | default (omit) }}
1616
state={{ item.1.state }}
1717
default_tablespace={{ item.1.default_tablespace | default (omit) }}
1818
default_temp_tablespace={{ item.1.default_temp_tablespace | default (omit) }}
1919
container={{ item.1.container | default(omit) }}
20-
update_password={{ item.1.update_password | default('on_create') }}
20+
update_password={{ item.1.update_password | default(omit) }}
2121
authentication_type={{ item.1.authentication_type | default(omit) }}
2222
grants={{ item.1.grants | default (omit) }}
2323
with_subelements:
@@ -45,13 +45,13 @@
4545
password={{ db_password_pdb }}
4646
mode="{{ db_mode }}"
4747
schema={{ item.1.schema }}
48-
schema_password={{ user_pdb_password }}
49-
schema_password_hash={{ user_pdb_password_hash | default(omit) }}
48+
schema_password={{ item.1.password_is_hash | default(false) | ternary(omit,user_pdb_password) }}
49+
schema_password_hash={{ item.1.password_is_hash | default(false) | ternary(user_pdb_password,omit) }}
5050
profile={{ item.1.profile | default (omit) }}
5151
state={{ item.1.state }}
5252
default_tablespace={{ item.1.default_tablespace | default (omit) }}
5353
default_temp_tablespace={{ item.1.default_temp_tablespace | default (omit) }}
54-
update_password={{ item.1.update_password | default('on_create') }}
54+
update_password={{ item.1.update_password | default(omit) }}
5555
authentication_type={{ item.1.authentication_type | default(omit) }}
5656
grants={{ item.1.grants | default (omit) }}
5757
with_subelements:

0 commit comments

Comments
 (0)