2022-11-18 14:38:03 +01:00

60 lines
1.3 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