séparation install DB et application RU
This commit is contained in:
@@ -158,6 +158,36 @@
|
|||||||
- debug: var=opatchls.stdout_lines
|
- debug: var=opatchls.stdout_lines
|
||||||
tags: opatch
|
tags: opatch
|
||||||
|
|
||||||
|
# application du patch RU
|
||||||
|
- name: patch conflict detection
|
||||||
|
action: shell export ORACLE_HOME={{ oracle_home }}; cd {{ patch_dir }}/{{ patch_number }}; $ORACLE_HOME/OPatch/opatch prereq CheckConflictAgainstOHWithDetail -ph ./
|
||||||
|
register: conflict_detection
|
||||||
|
failed_when: "'Prereq \"checkConflictAgainstOHWithDetail\" passed.' not in conflict_detection.stdout"
|
||||||
|
become: true
|
||||||
|
become_method: su
|
||||||
|
become_user: oracle
|
||||||
|
tags: patch_db
|
||||||
|
|
||||||
|
- name: Application du patch
|
||||||
|
action: shell export ORACLE_HOME={{ oracle_home}}; cd {{ patch_dir }}/{{ patch_number }}; $ORACLE_HOME/OPatch/opatch apply -silent
|
||||||
|
register: apply_psu
|
||||||
|
failed_when: "'OPatch succeeded.' not in apply_psu.stdout"
|
||||||
|
become: true
|
||||||
|
become_method: su
|
||||||
|
become_user: oracle
|
||||||
|
tags: patch_db
|
||||||
|
|
||||||
|
- name: Résultat de l'installation via OPatch
|
||||||
|
shell: "{{ oracle_home }}/OPatch/opatch lspatches"
|
||||||
|
become: true
|
||||||
|
become_method: su
|
||||||
|
become_user: oracle
|
||||||
|
register: opatchls
|
||||||
|
tags: patch_db
|
||||||
|
|
||||||
|
- debug: var=opatchls.stdout_lines
|
||||||
|
tags: patch_db
|
||||||
|
|
||||||
# suppression des binaires, du fichier de réponse et du script d'install
|
# suppression des binaires, du fichier de réponse et du script d'install
|
||||||
- name: suppression du fichier de réponse
|
- name: suppression du fichier de réponse
|
||||||
file: path={{ oracle_sources }}/{{ db_response_file }} state=absent
|
file: path={{ oracle_sources }}/{{ db_response_file }} state=absent
|
||||||
|
|||||||
@@ -14,6 +14,7 @@ else
|
|||||||
export CV_ASSUME_DISTID=OEL7.6
|
export CV_ASSUME_DISTID=OEL7.6
|
||||||
fi
|
fi
|
||||||
# Application du patch {{ patch_number }} et execution de runInstaller
|
# Application du patch {{ patch_number }} et execution de runInstaller
|
||||||
{{ oracle_home }}/runInstaller -applyRU /u01/sources/{{ patch_number }} -responseFile {{ oracle_sources }}/{{ db_response_file }} -ignorePrereqFailure -silent -waitforcompletion
|
# {{ oracle_home }}/runInstaller -applyRU /u01/sources/{{ patch_number }} -responseFile {{ oracle_sources }}/{{ db_response_file }} -ignorePrereqFailure -silent -waitforcompletion
|
||||||
|
{{ oracle_home }}/runInstaller -responseFile {{ oracle_sources }}/{{ db_response_file }} -ignorePrereqFailure -silent -waitforcompletion
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user