diff --git a/book-config-oel-6-7.yml b/book-config-oel-6-7.yml index aca4d0b..50bd741 100755 --- a/book-config-oel-6-7.yml +++ b/book-config-oel-6-7.yml @@ -6,5 +6,5 @@ roles: - { role: configure-host-oel6, when: "ansible_distribution_major_version == '6'" } - { role: configure-host-oel7, when: "ansible_distribution_major_version >= '7'" } -# - install-oracle-sw + - install-oracle-sw diff --git a/install-oracle-sw/tasks/main.yml b/install-oracle-sw/tasks/main.yml index 11106c2..85e60d2 100644 --- a/install-oracle-sw/tasks/main.yml +++ b/install-oracle-sw/tasks/main.yml @@ -6,13 +6,13 @@ # --------------------------------------------------- # configuration Linux : Utilisateurs et groupes # --------------------------------------------------- - - include: users_configuration.yml - when: install_grid_infra or install_database - - - include: install_grid_infra.yml - when: install_grid_infra - - - include: install_database.yml - when: install_database + # - include: users_configuration.yml + # when: install_grid_infra or install_database + # + # - include: install_grid_infra.yml + # when: install_grid_infra + # + # - include: install_database.yml + # when: install_database - include: scripts_exploitation.yml diff --git a/install-oracle-sw/tasks/users_configuration.yml b/install-oracle-sw/tasks/users_configuration.yml index 3a7d2cb..2526bae 100644 --- a/install-oracle-sw/tasks/users_configuration.yml +++ b/install-oracle-sw/tasks/users_configuration.yml @@ -27,16 +27,4 @@ ignore_errors: true tags: user - # --------------------------------------------------- - # configuration Linux : config oracle pour logrotate - # --------------------------------------------------- - - name: Gestion des logs Oracle - copie du fichier de configuration pour logrotate - template: src=logrotate_oracle.j2 dest=/etc/logrotate.d/oracle mode=644 owner=root group=root - tags: logrotate - - # --------------------------------------------------- - # copy du fichier oracledb dans /etc/init.d pour redémmarage auto - # --------------------------------------------------- - - name: Copy du fichier oracledb dans /etc/init.d pour redémmarage auto - template: src=oracledb_initd.j2 dest=/etc/init.d/oracledb mode=755 owner=root group=root - tags: init.d + diff --git a/install-oracle-sw/templates/dbora_initd.j2 b/install-oracle-sw/templates/dbora_initd.j2 index ff73b93..5399698 100644 --- a/install-oracle-sw/templates/dbora_initd.j2 +++ b/install-oracle-sw/templates/dbora_initd.j2 @@ -10,9 +10,9 @@ # Set ORA_OWNER to the user id of the owner of the # Oracle database in ORACLE_HOME. -ORA_HOME={{ db_home }} -ORACLE_HOME_LISTENER={{ db_home }} -ORA_OWNER={{ oracle_user }} +ORA_HOME={{ oracle_home }} +ORACLE_HOME_LISTENER={{ oracle_home }} +ORA_OWNER=oracle case "$1" in 'start') diff --git a/install-oracle-sw/vars/main.yml b/install-oracle-sw/vars/main.yml index 35361ed..3335cdc 100644 --- a/install-oracle-sw/vars/main.yml +++ b/install-oracle-sw/vars/main.yml @@ -4,6 +4,9 @@ # dans cette section ne rien modifier sauf si besoin #-------------------------------------------------------------------- +oracle_base: "/u01/app/oracle" +oracle_inventory: "/u01/app/oraInventory" +oracle_home: "/u01/app/oracle/product/19.0.0/dbhome_1" oracle_stage: "/u01/sources" # u01_free_space 4 Go pour l'install et 4 Go pour transfert et decompression des zip