Skip to content
Snippets Groups Projects
Commit 20658b56 authored by jurgenhaas's avatar jurgenhaas
Browse files

SV-255740 Datenbank 03-Vereine Tineon 1 ist nicht erreichbar

parent d5eacf6d
No related branches found
No related tags found
No related merge requests found
......@@ -63,6 +63,7 @@
with_items: '{{ oracle_instances|default([]) }}'
loop_control:
loop_var: oracle
tags: instancesonly
- name: Install cron job for backups
cron:
......
......@@ -5,6 +5,7 @@
stat:
path: /opt/oracle/oracle-xe-{{ oracle.id }}
register: instance_db_dir
tags: instancesonly
- block:
......@@ -33,6 +34,7 @@
- setup.sh
- setup.sql
tags: instancesonly
when: not instance_db_dir.stat.exists
- name: Create an oracle container
......@@ -49,6 +51,7 @@
- /opt/oracle/oracle-xe-{{ oracle.id }}:/opt/oracle/oradata
- /opt/oracle/scripts:/usr/local/sbin
- /var/backups/oracle:/var/backups/oracle
tags: instancesonly
- block:
......@@ -59,4 +62,5 @@
- name: Execute basic setup
shell: docker exec oracle-xe-{{ oracle.id }} bash -c "source /home/oracle/.bashrc; /opt/oracle/oradata/scripts/setup.sh"
tags: instancesonly
when: not instance_db_dir.stat.exists
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment