From 43a6aaccad2e59b5e10b5ec465e4ee87e396f2a4 Mon Sep 17 00:00:00 2001 From: Violeta Sebe Date: Wed, 5 Sep 2018 15:03:48 -0400 Subject: [PATCH] Install MinGW-W64 on Windows - install 7zip - install MinGW from a 7zip package Signed-off-by: Violeta Sebe --- .../AdoptOpenJDK_Windows_Playbook/main.yml | 1 + .../roles/MinGW-W64/tasks/main.yml | 40 +++++++++++++++++++ 2 files changed, 41 insertions(+) create mode 100644 ansible/playbooks/AdoptOpenJDK_Windows_Playbook/roles/MinGW-W64/tasks/main.yml diff --git a/ansible/playbooks/AdoptOpenJDK_Windows_Playbook/main.yml b/ansible/playbooks/AdoptOpenJDK_Windows_Playbook/main.yml index b892c67e05..4f8690d413 100644 --- a/ansible/playbooks/AdoptOpenJDK_Windows_Playbook/main.yml +++ b/ansible/playbooks/AdoptOpenJDK_Windows_Playbook/main.yml @@ -45,3 +45,4 @@ - MSVS_2017 - NVidia_Cuda_Toolkit - NTP_TIME + - MinGW-W64 diff --git a/ansible/playbooks/AdoptOpenJDK_Windows_Playbook/roles/MinGW-W64/tasks/main.yml b/ansible/playbooks/AdoptOpenJDK_Windows_Playbook/roles/MinGW-W64/tasks/main.yml new file mode 100644 index 0000000000..e7b55fbd5f --- /dev/null +++ b/ansible/playbooks/AdoptOpenJDK_Windows_Playbook/roles/MinGW-W64/tasks/main.yml @@ -0,0 +1,40 @@ +--- +######## +# 7zip # +######## +- name: Download 7zip + win_get_url: + url: https://www.7-zip.org/a/7z1805-x64.exe + dest: 'C:\temp\7z.exe' + force: no + tags: mingw + +- name: Install 7zip + win_package: + path: 'C:\temp\7z.exe' + creates_path: 'C:\7-Zip\7z.exe' + state: present + tags: mingw + +############# +# MinGW-W64 # +############# + +- name: Test if MinGW is already installed + win_stat: + path: 'C:\mingw-w64' + register: mingw_installed + tags: mingw + +- name: Download MinGW-W64 + win_get_url: + url: https://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win64/Personal%20Builds/mingw-builds/8.1.0/threads-win32/seh/x86_64-8.1.0-release-win32-seh-rt_v6-rev0.7z + dest: 'C:\temp\' + when: mingw_installed.stat.exists == false + force: no + tags: mingw + +- name: Install MinGW-W64 + raw: C:\7-Zip\7z.exe x C:\temp\x86_64-8.1.0-release-win32-seh-rt_v6-rev0.7z -oC:\mingw-w64\x86_64-8.1.0-win32-seh-rt_v6-rev0\ + when: mingw_installed.stat.exists == false + tags: mingw