You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This role will run datapatch on selected databases
5
+
6
+
7
+
8
+
Role Variables
9
+
--------------
10
+
11
+
```
12
+
oracle_user: oracle
13
+
db_user: sys
14
+
db_password: "{% if dbpasswords is defined and dbpasswords[item.oracle_db_name] is defined and dbpasswords[item.oracle_db_name][db_user] is defined%}{{dbpasswords[item.oracle_db_name][db_user]}}{% else %}{{ default_dbpass}}{% endif%}"
15
+
16
+
db_service_name: "{%- if item.oracle_db_unique_name is defined -%}
17
+
{{ item.oracle_db_unique_name }}
18
+
{%- else -%}
19
+
{{ item.oracle_db_name }}
20
+
{%- endif -%}"
21
+
22
+
listener_port_template: "{% if item.listener_port is defined %}{{ item.listener_port }}{% else %}{{ listener_port }}{% endif %}"
23
+
listener_port: 1521
24
+
fail_on_db_not_exist: False <-- If the DB is not yet created at the time of the datapatch run, we still want the play to continue
25
+
```
26
+
27
+
28
+
Example Playbook
29
+
----------------
30
+
31
+
Including an example of how to use your role (for instance, with variables passed in as parameters) is always nice for users too:
db_password: "{% if dbpasswords is defined and dbpasswords[item.oracle_db_name] is defined and dbpasswords[item.oracle_db_name][db_user] is defined%}{{dbpasswords[item.oracle_db_name][db_user]}}{% else %}{{ default_dbpass}}{% endif%}"
6
+
7
+
db_service_name: "{%- if item.oracle_db_unique_name is defined -%}
8
+
{{ item.oracle_db_unique_name }}
9
+
{%- else -%}
10
+
{{ item.oracle_db_name }}
11
+
{%- endif -%}"
12
+
13
+
listener_port_template: "{% if item.listener_port is defined %}{{ item.listener_port }}{% else %}{{ listener_port }}{% endif %}"
0 commit comments