Skip to content

Commit b18fffc

Browse files
authored
Merge pull request #7 from idealista/features/6
#6 Provide optional sdk package installation
2 parents d64610d + a8c7a3e commit b18fffc

File tree

3 files changed

+22
-0
lines changed

3 files changed

+22
-0
lines changed

CHANGELOG.md

+3
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ All notable changes to this project will be documented in this file.
33
This project adheres to [Semantic Versioning](http://semver.org/) and [Keep a changelog](https://github.com/olivierlacan/keep-a-changelog).
44

55

6+
### Added
7+
- *[#6](https://github.com/idealista/oracle_instant_client_role/issues/6) Provide optional sdk package installation* @jmonterrubio
8+
69
## [1.0.0](https://github.com/idealista/oracle_instant_client_role/tree/1.0.0) (2020-03-10)
710

811
### Added

defaults/main.yml

+6
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,23 @@
33

44
instant_client_version: 19.6.0.0.0
55
instant_client_release_system: linux.x64
6+
instant_client_devel_install: false
67

78
instant_client_basic_release_name: instantclient-basic-{{ instant_client_release_system }}-{{ instant_client_version }}dbru
89
instant_client_basic_package: "{{ instant_client_basic_release_name }}.zip"
910
instant_client_basic_url: "https://download.oracle.com/otn_software/linux/instantclient/{{ instant_client_version[:-1] | replace('.' , '') }}/{{ instant_client_basic_package }}"
1011

12+
instant_client_devel_release_name: instantclient-sdk-{{ instant_client_release_system }}-{{ instant_client_version }}dbru
13+
instant_client_devel_package: "{{ instant_client_devel_release_name }}.zip"
14+
instant_client_devel_url: "https://download.oracle.com/otn_software/linux/instantclient/{{ instant_client_version[:-1] | replace('.' , '') }}/{{ instant_client_devel_package }}"
15+
1116
instant_client_sqlplus_release_name: instantclient-sqlplus-{{ instant_client_release_system }}-{{ instant_client_version }}dbru
1217
instant_client_sqlplus_package: "{{ instant_client_sqlplus_release_name }}.zip"
1318
instant_client_sqlplus_url: "https://download.oracle.com/otn_software/linux/instantclient/{{ instant_client_version[:-1] | replace('.' , '') }}/{{ instant_client_sqlplus_package }}"
1419

1520
instant_client_download_path: /usr/src
1621
instant_client_basic_package_path: "{{ instant_client_download_path }}/{{ instant_client_basic_package }}"
22+
instant_client_devel_package_path: "{{ instant_client_download_path }}/{{ instant_client_devel_package }}"
1723
instant_client_sqlplus_package_path: "{{ instant_client_download_path }}/{{ instant_client_sqlplus_package }}"
1824

1925
instant_client_extract_path: /opt/oracle

tasks/install.yml

+13
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,12 @@
1010
url: "{{ instant_client_basic_url }}"
1111
dest: "{{ instant_client_basic_package_path }}"
1212

13+
- name: ORACLE_INSTANT_CLIENT | Download devel package
14+
get_url:
15+
url: "{{ instant_client_devel_url }}"
16+
dest: "{{ instant_client_devel_package_path }}"
17+
when: instant_client_devel_install == True
18+
1319
- name: ORACLE_INSTANT_CLIENT | Download sqlplus package
1420
get_url:
1521
url: "{{ instant_client_sqlplus_url }}"
@@ -21,6 +27,13 @@
2127
dest: "{{ instant_client_extract_path }}"
2228
remote_src: True
2329

30+
- name: ORACLE_INSTANT_CLIENT | Extract devel package into installation folder
31+
unarchive:
32+
src: "{{ instant_client_devel_package_path }}"
33+
dest: "{{ instant_client_extract_path }}"
34+
remote_src: True
35+
when: instant_client_devel_install == True
36+
2437
- name: ORACLE_INSTANT_CLIENT | Extract sqlplus package into installation folder
2538
unarchive:
2639
src: "{{ instant_client_sqlplus_package_path }}"

0 commit comments

Comments
 (0)