fertiges Playbook für 19.13
This commit is contained in:
@ -96,6 +96,34 @@
|
||||
loop_control:
|
||||
label: "{{ item.path }}"
|
||||
|
||||
|
||||
##############################
|
||||
# addin entries to profile
|
||||
##############################
|
||||
- name: Further entries for profile
|
||||
become_user: oracle
|
||||
become: yes
|
||||
lineinfile:
|
||||
path: /home/oracle/.bash_profile
|
||||
regexp: '^# Below this line.*\n# --*'
|
||||
insertafter: '^# -----.*'
|
||||
line: |
|
||||
# weitere Aliase
|
||||
alias cdrman='cd ${BE_ORA_ADMIN_SID}/rman'
|
||||
alias tf='tail -f '
|
||||
alias tan='tail -f nohup.out'
|
||||
export PATH=$PATH:/sw/RS/LITO/rhl
|
||||
#Titelzeile
|
||||
RS_UNAM=`uname`
|
||||
RS_HOST=`hostname | cut -d. -f1`
|
||||
RS_SIDLIST=`echo $BE_SIDLIST | sed 's/emagent[^ ]*//g' | sed 's/rdbms[^ ]*//g' | tr -s " "`
|
||||
if [ "$RS_UNAM" = "Linux" ]; then
|
||||
RS_IP=`hostname -i`
|
||||
else
|
||||
RS_IP=`nslookup $RS_HOST | grep "Address" | tail -1 | awk '{print $2}'`
|
||||
fi
|
||||
xtitle "$RS_HOST - $RS_IP ($RS_UNAM) $RS_SIDLIST"
|
||||
|
||||
##############################
|
||||
# linking emagent with latest oracle_home
|
||||
##############################
|
||||
@ -128,5 +156,5 @@
|
||||
state: link
|
||||
when: directory_data.stat.exists
|
||||
|
||||
- debug: msg="Verzeichnis {{ emagent_inst_dir }} auf Server nicht gefunden"
|
||||
- debug: msg="Verzeichnis {{ emagent_inst_dir }} auf Server nicht gefunden ln -s {{ sortiert.msg[0] }}/perl {{ emagent_inst_dir }}/perl"
|
||||
when: not directory_data.stat.exists
|
||||
|
Reference in New Issue
Block a user