Yacine31 e13764a6ae Update dir_creation.yml
remplacer le module file par shell pour le chown
2023-04-19 14:49:27 +02:00
2023-04-19 14:49:27 +02:00
2022-12-14 00:27:31 +01:00
2022-12-14 00:27:31 +01:00
2022-12-14 00:27:31 +01:00
2022-12-14 00:27:31 +01:00
2023-01-25 10:53:35 +01:00

----------------------
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
Configuration Linux et Installation Oracle 19c
Readme 715 KiB
Languages
Shell 66.7%
Jinja 33.3%