81577da51cef1cc1220f66788a0d2ffcb202b9e8
----------------------
INSTALLATION ANSIBLE DIRECT SUR LA MACHINE
----------------------
yum install -y oracle-epel-release-el8
yum install -y git ansible
cloner le repository :
----------------------
(compte root)
# git clone https://github.com/Yacine31/oracle_19_install
# cd oracle_19_install
3 books à jour :
----------------
- oracle-db-preinstall.yml => configuration de Linux pour une installation Oracle
- oracle-db-install.yml => installation d'Oracle 19 EE ou SE
- oracle-db-postinstall.yml => ajout des scripts d'exploitation
Exécution :
-----------
ansible-playbook -i hosts oracle-db-preinstall.yml
Les valuers par défaut sont dans :
- oracle_version: "19.0.0"
- oracle_base: "/u01/app/oracle"
- oracle_home: "{{ oracle_base }}/product/{{oracle_version}}/dbhome_1"
- oracle_inventory: "/u01/app/oraInventory"
- oracle_sources: "/u01/sources"
- oracle_oradata: "/u02/oradata/"
- oracle_fra: "/u03/fast_recovery_area/"
Pour l'exécuter avec des variables différentes :
ansible-playbook -i hosts oracle-db-preinstall.yml --extra-vars "oracle_version=19c oracle_base=/opt/oracle oracle_home=/opt/oracle/product/19c/dbhome_1"
Description
Languages
Shell
66.7%
Jinja
33.3%