@@ -6,7 +6,7 @@ ARG PW=T3mp=Passwd
66# Download Cygwin Bootstrapper & Verify Its Checksum
77RUN powershell -Command \
88 "wget -UseBasicParsing https://cygwin.com/setup-x86_64.exe -OutFile setup-x86_64.exe; \
9- $expectedChecksum = 'e7815d360ab098fdd1f03f10f43f363c73a632e8866e304c72573cf1e6a0dec8 '; \
9+ $expectedChecksum = '46993d76d756bde18564f72a4ee07384cd82b447527ca406c8bfc034cb05c664 '; \
1010 $fileChecksum = CertUtil -hashfile setup-x86_64.exe SHA256 | Select-String -Pattern '([A-Fa-f0-9]{64})' | ForEach-Object { $_.Matches[0].Groups[1].Value }; \
1111 if ($fileChecksum -ne $expectedChecksum) { \
1212 Write-Host 'Checksum verification failed!' -ForegroundColor Red; \
@@ -17,15 +17,15 @@ RUN powershell -Command \
1717 }"
1818
1919# Set up cygwin with ansible as a bootstrap, and add to system default path
20- RUN setup-x86_64.exe --packages ansible --download --local-install --delete-orphans --site https://mirrors.kernel.org/sourceware/cygwin --local-package-dir c:\cygwin_packages --root C:\cygwin64 --wait --quiet-mode && \
20+ RUN setup-x86_64.exe --packages ansible --download --local-install --delete-orphans --site https://cygwin.mirror.constant.com --local-package-dir c:\cygwin_packages --root C:\cygwin64 --wait --quiet-mode && \
2121 del setup-x86_64.exe && \
2222 setx PATH "c:\cygwin64\bin;%PATH%" && \
2323 mkdir c:\temp
2424
2525# Download Ansible Config Script & Verify Its Checksum
2626RUN powershell -Command \
2727 "wget https://raw.githubusercontent.com/ansible/ansible/dd4c56e4d68664e4a50292aa19ea61b15c92287c/examples/scripts/ConfigureRemotingForAnsible.ps1 -OutFile ConfigureRemotingForAnsible.ps1; \
28- $expectedChecksum = '201ad16584f79292044dc21c78c6688dce07f94d769f5e69631b46c3c13036fc'; \
28+ $expectedChecksum = '201ad16584f79292044dc21c78c6688dce07f94d769f5e69631b46c3c13036fc'; \
2929 $fileChecksum = CertUtil -hashfile ConfigureRemotingForAnsible.ps1 SHA256 | Select-String -Pattern '([A-Fa-f0-9]{64})' | ForEach-Object { $_.Matches[0].Groups[1].Value }; \
3030 if ($fileChecksum -ne $expectedChecksum) { \
3131 Write-Host 'Checksum verification failed!' -ForegroundColor Red; \
@@ -50,7 +50,7 @@ RUN net user ansible %PW% /ADD & net localgroup "Administrators" ansible /ADD &
5050 sed -i -e 's/hosts: .*/hosts: localhost/' infrastructure/ansible/playbooks/AdoptOpenJDK_Windows_Playbook/main.yml && \
5151 echo localhost ansible_connection=winrm > infrastructure/ansible/hosts && \
5252 cd infrastructure\ansible && \
53- C:\cygwin64\bin\python3.7m.exe /usr/bin/ansible-playbook -e git_sha=00000000 -e ansible_user=ansible -e ansible_password=%PW% -i hosts \
53+ C:\cygwin64\bin\python3.7m.exe /usr/bin/ansible-playbook -vv - e git_sha=00000000 -e ansible_user=ansible -e ansible_password=%PW% -i hosts \
5454 --skip-tags=adoptopenjdk,reboot,Windows_Updates,NTP_TIME,MSVS_2013,MSVS_2017,MSVS_2019,NVidia_Cuda_Toolkit,clang_64bit,clang_32bit,nasm,Rust,IcedTea-Web playbooks/AdoptOpenJDK_Windows_Playbook/main.yml && \
5555 net user ansible /DELETE
5656
0 commit comments