2022-11-22 06:16:15 +01:00

72 lines
1.7 KiB
YAML

---
# 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
- name: unncomment /opt/oracle/trivadis/local/dba/etc/sid._DEFAULT_.conf TVDPERL_HOME.
replace:
path: /opt/oracle/trivadis/local/dba/etc/sid._DEFAULT_.conf
regexp: '^#(.*TVDPERL_HOME.*)'
replace: '\1'
- name: unncomment /opt/oracle/trivadis/local/dba/etc/sid._DEFAULT_.conf TVDPERLBIN
replace:
path: /opt/oracle/trivadis/local/dba/etc/sid._DEFAULT_.conf
regexp: '^#(.*TVDPERLBIN.*)'
replace: '\1'