Skip to content

Commit

Permalink
F #src 7366 fix for wsl 2024 (#577)
Browse files Browse the repository at this point in the history
* 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 <[email protected]>
  • Loading branch information
carebare47 and dg-shadow authored Feb 6, 2024
1 parent 5c86d55 commit 863d3a1
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions bin/run-ansible.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 "

Expand Down

0 comments on commit 863d3a1

Please sign in to comment.