Skip to content

Commit

Permalink
extract files
Browse files Browse the repository at this point in the history
  • Loading branch information
robertsweetman committed Apr 9, 2024
1 parent c582ac4 commit 0ebb30a
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 4 deletions.
10 changes: 10 additions & 0 deletions ansible/roles/onr-boe/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,13 @@ boe_install_group: binstall

stage: "{{ artefact_dir }}/stage"
temp: "{{ artefact_dir }}/temp"

# sap_boe_platform_unpack_base_directory: /opt/sap/boe
# sap_bi_platform_extraction_directory: /u02/software/BIP_4_3_SP1
# sap_bi_platform_installation_directory: /u01/app/bobj/BIP4
# sap_jvm_unpack_base_directory: /opt/sap/java
# sap_host_agent_base_directory: /opt/sap/hostagent

# ncr_environment: "{{ ec2.tags['nomis-combined-reporting-environment'] }}"
# node: "{{ ec2.tags['node'] }}"
# application_type: "{{ ec2.tags['type'] }}"
2 changes: 1 addition & 1 deletion ansible/roles/onr-boe/meta/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
dependencies:
- role: get-ec2-facts
- role: ansible-requirements
# - role: disable-ipv6 TODO: ask Craig what this is for
- role: disable-ipv6
- role: disable-firewall
6 changes: 3 additions & 3 deletions ansible/roles/onr-boe/tasks/download-software.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
- "{{ stage }}"
tags:
- amibuild
- oracle_19c_download
- oracle_19c_create_dirs
# - oracle_19c_download
# - oracle_19c_create_dirs

# - name: Download oracle prerequisite rpms from S3 bucket
# amazon.aws.aws_s3:
Expand All @@ -26,7 +26,7 @@
# - "{{ oracle_asmlib_rpm }}"
# - "{{ oracleasm_support_rpm }}"

- name: Download Oracle 19c software from S3 bucket
- name: Download BOE software from S3 bucket
amazon.aws.aws_s3:
bucket: "{{ artefacts_s3_bucket_name }}"
object: "{{ artefacts_s3_bucket_path }}/{{ item }}"
Expand Down
21 changes: 21 additions & 0 deletions ansible/roles/onr-boe/tasks/extract-software.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
# - name: Check if the BOE software has been extracted
# stat:
# path: "{{ app_dir }}"
# register: software_extracted

# - name: Unpack the install files
# block:
- name: Unpack the BOE software
ansible.builtin.unarchive:
src: "{{ stage }}/{{ boe_software }}"
dest: "{{ app_dir }}"
remote_src: yes
# when: stage is defined
# when: not software_extracted.stat.exists
# rescue:
# - name: Remove the unpacked BOE software
# file:
# path: "{{ app_dir }}/BOE"
# state: absent
# # when: stage is defined

0 comments on commit 0ebb30a

Please sign in to comment.