Skip to content

Commit 95c5ae1

Browse files
talekRendanic
authored andcommitted
oradb_manage_db: support for dbca custom scripts
1 parent f405823 commit 95c5ae1

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
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: support for dbca custom scripts"

roles/oradb_manage_db/tasks/manage-db.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@
2727
# without executing a template task before.
2828
- name: manage_db | Copy custom dbca Templates for Database to ORACLE_HOME/assistants/dbca/templates
2929
ansible.builtin.template:
30-
src: "{{ (dbh.dbca_templatepath | default(''), dbh.dbca_templatename) | path_join }}"
31-
dest: "{{ oracle_home_db }}/assistants/dbca/templates/{{ dbh.oracle_db_name }}_{{ dbh.dbca_templatename }}"
30+
src: "{{ (dbh.dbca_templatepath | default(''), item) | path_join }}"
31+
dest: "{{ oracle_home_db }}/assistants/dbca/templates/{{ dbh.oracle_db_name }}_{{ item }}"
3232
owner: "{{ oracle_user }}"
3333
group: "{{ oracle_group }}"
3434
mode: "0640"
@@ -37,6 +37,9 @@
3737
- dbh.dbca_templatename is defined
3838
- dbh.dbca_copy_template | default(true)
3939
- dbh.dbca_templatename not in('New_Database.dbt','General_Purpose.dbc')
40+
with_items:
41+
- "{{ dbh.dbca_templatename }}"
42+
- "{{ dbh.customscripts | default([]) }}"
4043
tags:
4144
- customdbcatemplate
4245
- dbcatemplate

0 commit comments

Comments
 (0)