-
-
Notifications
You must be signed in to change notification settings - Fork 101
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Install OpenSSL in windows playbook (#560)
OpenSSL is required to compile java on windows, so the OpenSSL role will ensure the 32bit and 64bit versions are both installed into C:\openjdk Signed-off-by: Colton Mills <millscolt3@gmail.com>
- Loading branch information
Showing
2 changed files
with
57 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -47,3 +47,4 @@ | |
- NTP_TIME | ||
- 7-Zip | ||
- MinGW-W64 | ||
- OpenSSL |
56 changes: 56 additions & 0 deletions
56
ansible/playbooks/AdoptOpenJDK_Windows_Playbook/roles/OpenSSL/tasks/main.yml
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,56 @@ | ||
--- | ||
########### | ||
# OpenSSL # | ||
########### | ||
- name: Check if OpenSSL 32bit installed | ||
win_shell: Test-Path -Path C:\openjdk\OpenSSL-1.1.1-x86_32 | ||
register: openssl32_installed | ||
tags: openssl | ||
|
||
- name: Check if OpenSSL 64bit installed | ||
win_shell: Test-Path -Path C:\openjdk\OpenSSL-1.1.1-x86_64 | ||
register: openssl64_installed | ||
tags: openssl | ||
|
||
- name: Download OpenSSL-1.1.1 | ||
win_get_url: | ||
url: https://www.openssl.org/source/openssl-1.1.1.tar.gz | ||
dest: C:\temp\openssl-1.1.1.tar.gz | ||
when: (openssl32_installed == False) or (openssl64_installed == False) | ||
tags: openssl | ||
|
||
- name: Unpack OpenSSL-1.1.1 | ||
win_unzip: | ||
src: C:\temp\openssl-1.1.1.tar.gz | ||
dest: C:\temp | ||
delete_archive: yes | ||
when: (openssl32_installed == False) or (openssl64_installed == False) | ||
tags: openssl | ||
|
||
- name: Install OpenSSL-1.1.1 32bit | ||
win_shell: | | ||
set PATH=C:\Strawberry\perl\bin;C:\openjdk\nasm-2.13.03;%PATH% | ||
"C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\Tools\vsvars32" | ||
perl C:\temp\openssl-1.1.1\Configure VC-WIN32 --prefix=C:\openjdk\OpenSSL-1.1.1-x86_32 | ||
nmake install | ||
args: | ||
executable: cmd | ||
when: (openssl32_installed == False) | ||
tags: openssl | ||
|
||
- name: Install OpenSSL-1.1.1 64bit | ||
win_shell: | | ||
set PATH=C:\Strawberry\perl\bin;C:\openjdk\nasm-2.13.03;%PATH% | ||
"C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\vcvarsall" AMD64 | ||
perl C:\temp\openssl-1.1.1\Configure VC-WIN64A --prefix=C:\openjdk\OpenSSL-1.1.1-x86_64 | ||
nmake install | ||
args: | ||
executable: cmd | ||
when: (openssl64_installed == False) | ||
tags: openssl | ||
|
||
- name: Cleanup OpenSSL | ||
win_file: | ||
path: C:\temp\openssl-1.1.1 | ||
state: absent | ||
tags: openssl |