DB Serverinitialisierung
This commit is contained in:
BIN
roles/tvd/tasks/.main.yml.swp
Normal file
BIN
roles/tvd/tasks/.main.yml.swp
Normal file
Binary file not shown.
59
roles/tvd/tasks/main.yml
Normal file
59
roles/tvd/tasks/main.yml
Normal 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
|
Reference in New Issue
Block a user