DB Serverinitialisierung

This commit is contained in:
aschwarz
2022-11-18 14:38:03 +01:00
parent 4fc5120f41
commit 929fb55cc8
447 changed files with 772 additions and 31178 deletions

Binary file not shown.

59
roles/tvd/tasks/main.yml Normal file
View File

@ -0,0 +1,59 @@
---
# tasks file TVD
- name: display pre database software install message
remote_user: root
debug:
msg:
- 'TVD Basenenv Installation'
- name: clean old responsefile
file:
path: /tmp/basenv_install.rsp
state: absent
- name: copy responsfile for tvdbasenv
when: inventory_hostname in groups['dbservers']
become: yes
become_user: oracle
template: src=roles/tvd/templates/basenv.rsp.j2 dest=/tmp/basenv_install.rsp mode=0755
tags:
- tvd_responsefile
- name: Create ahf installation directory
file:
path: "/opt/oracle/etc"
state: directory
mode: 0755
owner: oracle
group: dba
- name: Create a symbolic link to etc/oratab
file:
src: /etc/oratab
dest: /opt/oracle/etc/oratab
force: yes
owner: oracle
group: dba
state: link
- name: Install basenv
become: true
become_user: oracle
shell: |
cd {{ install_dir }}
./runInstaller -s -r /tmp/basenv_install.rsp
register: basenv_installation
failed_when: "'Error:' in basenv_installation.stdout"
# Konfiguration
- name: Remove TVDPERLBIN
lineinfile:
path: /home/oracle/.TVDPERL_HOME
state: absent
regexp: '(?m)^export TVDPERLLIB.*'
- name: Add TVDPERLBIN
lineinfile:
path: /home/oracle/.TVDPERL_HOME
line: export TVDPERLBIN=/usr/bin/perl
create: yes