Skip to content

Commit dd6bcfe

Browse files
committed
oradb_manage_db: Assert SYS password in inventory before dbca
1 parent db44b63 commit dd6bcfe

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
---
2+
minor_changes:
3+
- "oradb_manage_db: Assert SYS password in inventory before dbca (oravirt#409)"

roles/oradb_manage_db/tasks/manage-db.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,17 @@
66
quiet: true
77
tags: always
88

9+
# We need to check if password is set in inventory
10+
# => Check for password length
11+
- name: Assert sys Password
12+
ansible.builtin.assert:
13+
quiet: true
14+
that:
15+
- _oradb_manage_db_dbca_sys_pass | length > 0
16+
fail_msg: Please set dbpasswords and/or default_dbpass in inventory.
17+
when:
18+
- odb.state in ('present', 'absent')
19+
920
- name: manage_db | check if GI is present
1021
ansible.builtin.stat:
1122
path: /etc/oracle/olr.loc

0 commit comments

Comments
 (0)