40b7c9d0338bcde598ce439fa01daac30e6e1a82
----------------------
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
2 books à jour :
----------------
- oracle-db-preinstall.yml => configuration de Linux pour une installation Oracle
- oracle-db-install.yml => installation d'Oracle 19 EE ou SE et ajout des scripts d'exploitation
1. Exécution Pre- install :
-----------
ansible-playbook -i hosts oracle-db-preinstall.yml
2. Exécution Install :
-----------
ansible-playbook -i hosts oracle-db-install.yml
Les valeurs par défaut :
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/"
oracle_install_edition: "EE" # SE2 ou EE
Pour l'exécuter avec des variables différentes :
ansible-playbook -i hosts oracle-db-install.yml --extra-vars "oracle_install_edition=SE oracle_version=19c oracle_base=/opt/oracle oracle_home=/opt/oracle/product/19c/dbhome_1"
Description
Languages
Shell
66.7%
Jinja
33.3%