Skip to content

Commit

Permalink
Merge pull request #8515 from Agoric/mfig-install-ansible-workaround
Browse files Browse the repository at this point in the history
ci(install-deps): work around Ansible PPA breakage
  • Loading branch information
mergify[bot] authored and mhofman committed Nov 9, 2023
2 parents 3dda414 + 367eda7 commit 984a30e
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion packages/deployment/scripts/install-deps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,14 @@ if test -d /etc/apt; then
echo "deb http://ppa.launchpad.net/ansible/ansible/ubuntu $VERSION_CODENAME main" >> /etc/apt/sources.list
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 93C4A3FD7BB9C367
apt-get update --allow-releaseinfo-change -y
apt-get install -y ansible rsync curl sudo gnupg2 jq libbsd-dev
apt-get install -y rsync curl sudo gnupg2 jq libbsd-dev
if apt-get install -y ansible; then : # success
else
# Failed to install Ansible, try workaround based on
# https://github.com/ansible-community/ppa/issues/77#issuecomment-1802847056
sed -i -e '1s/^[^#]*//' /usr/lib/python3/dist-packages/ansible_collections/netapp/ontap/plugins/modules/na_ontap_s3_users.py
apt-get install -y --fix-broken
fi
apt-get clean -y
elif test "$uname_s" == darwin; then
brew update
Expand Down

0 comments on commit 984a30e

Please sign in to comment.