-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
nomis: TM-472: update weblogic 19c role (#994)
- Loading branch information
1 parent
e053816
commit fbf4ce4
Showing
5 changed files
with
64 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
nomis_environment: "{{ ec2.tags['nomis-environment'] }}" | ||
weblogic_db_name: "{{ ec2.tags['oracle-db-name'] }}" | ||
weblogic_db_hostname_a: "{{ ec2.tags['oracle-db-hostname-a'] }}" | ||
weblogic_db_hostname_b: "{{ ec2.tags['oracle-db-hostname-b'] }}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
--- | ||
dependencies: | ||
- role: get-ec2-facts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
--- | ||
- name: Check installed packages | ||
ansible.builtin.package_facts: | ||
|
||
- block: | ||
- name: Create rpms directory | ||
ansible.builtin.file: | ||
path: "{{ item }}" | ||
state: directory | ||
owner: oracle | ||
group: oinstall | ||
mode: "0755" | ||
loop: | ||
- /u01/software/jdk | ||
|
||
- name: Get rpms from S3 bucket | ||
amazon.aws.aws_s3: | ||
bucket: "{{ image_builder_s3_bucket_name }}" | ||
object: "{{ item }}" | ||
dest: "/u01/software/{{ item }}" | ||
mode: get | ||
overwrite: latest | ||
loop: | ||
- jdk/jdk-8u411-linux-x64.rpm | ||
when: image_builder_s3_bucket_name is defined | ||
|
||
- name: Install rpms | ||
ansible.builtin.yum: | ||
name: "/u01/software/{{ item }}" | ||
state: present | ||
loop: | ||
- jdk/jdk-8u411-linux-x64.rpm | ||
|
||
# block | ||
when: ansible_facts.packages['jdk'] is not defined |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
--- | ||
- name: Rhel8 | ||
block: | ||
- import_tasks: install-rpms.yml | ||
tags: | ||
- amibuild | ||
- weblogic_install_jdk | ||
|
||
when: ansible_distribution in ['RedHat', 'OracleLinux'] and ansible_distribution_major_version == "8" |