From c2d4c4203d979d69a4717488100a381c54dfc734 Mon Sep 17 00:00:00 2001 From: Yacine31 Date: Mon, 18 Dec 2023 19:22:07 +0100 Subject: [PATCH] Update readme --- readme | 34 +++++++++++++++++++++------------- 1 file changed, 21 insertions(+), 13 deletions(-) diff --git a/readme b/readme index 1b9f33e..ff868e2 100644 --- a/readme +++ b/readme @@ -1,32 +1,37 @@ ----------------------- -INSTALLATION ANSIBLE DIRECT SUR LA MACHINE ----------------------- +# INSTALLATION ANSIBLE DIRECT SUR LA MACHINE +```bash yum install -y oracle-epel-release-el8 yum install -y git ansible +``` +```bash +ansible-galaxy collection install ansible.posix +``` +=> sinon les modules ne sont pas reconnus par ansible -cloner le repository : ----------------------- +# cloner le repository : (compte root) -# git clone https://github.com/Yacine31/oracle_19_install -# cd oracle_19_install +```bash +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 : ------------ +```bash ansible-playbook -i hosts oracle-db-preinstall.yml -e 'ansible_python_interpreter=/usr/bin/python3' - - +``` 2. Exécution Install : ------------ +```bash ansible-playbook -i hosts oracle-db-install.yml +``` Les valeurs par défaut : +```YAML oracle_version: "19.0.0" oracle_base: "/u01/app/oracle" oracle_home: "{{ oracle_base }}/product/{{oracle_version}}/dbhome_1" @@ -35,8 +40,11 @@ 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" \ No newline at end of file +```bash +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" +``` \ No newline at end of file