From 863d3a11981d88873a7c071e84874b358fb4e9cb Mon Sep 17 00:00:00 2001 From: Tom Queen Date: Tue, 6 Feb 2024 17:03:13 +0000 Subject: [PATCH] F #src 7366 fix for wsl 2024 (#577) * Update run-ansible.sh * Update run-ansible.sh * Update reinstall.yml * Update reinstall.yml * Update main.yml * Update main.yml * Update main.yml * Update reinstall.yml * Update run-ansible.sh --------- Co-authored-by: dg-shadow --- bin/run-ansible.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/bin/run-ansible.sh b/bin/run-ansible.sh index 35f793d9c..a16e7bdfc 100755 --- a/bin/run-ansible.sh +++ b/bin/run-ansible.sh @@ -354,6 +354,17 @@ fetch_new_files "http://shadowrobot.aurora-host-packages-${codename}.s3.eu-west- fetch_new_files "http://shadowrobot.aurora-host-packages-${codename}.s3.eu-west-2.amazonaws.com" "ansible_collections" ANSIBLE_SKIP_CONFLICT_CHECK=1 python -m pip install ${packages_download_root}/pip_packages/* +# Fix for WSL - THIS IS NOT SUPPORTED AT ALL!!! +if grep -q "microsoft" /proc/version && grep -iq "wsl" /proc/version; then + # python3 -m pip install pip --upgrade + pip install pyopenssl --upgrade + if [[ $(which docker | wc -l) -gt 0 ]]; then + if service docker status 2>&1 | grep -q "is not running"; then + wsl.exe --distribution "${WSL_DISTRO_NAME}" --user root --exec /usr/sbin/service docker start + fi + fi +fi + ansible_flags="-v "