add oracle instant client ansible role

This commit is contained in:
aaron
2021-08-24 13:29:46 +02:00
parent 3c13cd9cd8
commit f6127f262d
13 changed files with 291 additions and 0 deletions

24
templates/tnsnames.ora.j2 Normal file
View File

@@ -0,0 +1,24 @@
{% if oic_databases is defined %}
{% for db in oic_databases %}
{{ db.sid }} =
(DESCRIPTION =
(ADDRESS =
(PROTOCOL = TCP)
(HOST = {{ db.host }})
(PORT = {{ db.port }})
)
(CONNECT_DATA=
(SERVICE_NAME={{ db.service_name }})
)
)
{% endfor %}
{% endif %}
{% if oic_listener_host is defined and oic_listener_port is defined %}
LISTENER =
(ADDRESS =
(PROTOCOL = TCP)
(HOST = {{ oic_listener_host }})
(PORT = {{ oic_listener_port }})
)
{% endif %}