Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

oradb-manage-db: use custom DBCA-Templates from ORACLE_HOME directly #87

Merged
merged 1 commit into from
Nov 14, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion roles/oradb-manage-db/tasks/manage-db.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,14 +60,20 @@
when: dbh.state|lower == 'present'
tags: create_db,dotprofile_db

# dbca_copy_template is for special situations, when using DBCA-templates
# without executing a template task before.
- name: manage-db | Copy custom dbca Templates for Database to ORACLE_HOME/assistants/dbca/templates
template:
src={{ dbh.dbca_templatename }}
dest={{ oracle_home_db }}/assistants/dbca/templates/{{ dbh.oracle_db_name }}_{{ dbh.dbca_templatename }}
owner={{ oracle_user }}
group={{ oracle_group }}
mode=0640
when: dbh.state|lower == 'present' and dbh.dbca_templatename is defined and dbh.dbca_templatename not in('New_Database.dbt','General_Purpose.dbc')
when:
- dbh.state|lower == 'present'
- dbh.dbca_templatename is defined
- dbh.dbca_copy_template | default(true)
- dbh.dbca_templatename not in('New_Database.dbt','General_Purpose.dbc')
tags:
- customdbcatemplate
- dbcatemplate
Expand Down