Skip to content

Commit d558fb3

Browse files
authored
chore: try to fix frequent timeout on install of ansible-galaxy (#1466)
1 parent 44df10e commit d558fb3

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

scripts/nix-provision.sh

+11-4
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,18 @@ set -o pipefail
66
set -o xtrace
77

88
function install_packages {
9-
# Setup Ansible on host VM
10-
sudo apt-get update && sudo apt-get install software-properties-common -y
11-
sudo add-apt-repository --yes --update ppa:ansible/ansible && sudo apt-get install ansible -y
12-
ansible-galaxy collection install community.general
9+
# Setup Ansible on host VM
10+
sudo apt-get update && sudo apt-get install -y software-properties-common
1311

12+
# Manually add GPG key with explicit keyserver
13+
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 93C4A3FD7BB9C367
14+
15+
# Add repository and install
16+
sudo add-apt-repository --yes ppa:ansible/ansible
17+
sudo apt-get update
18+
sudo apt-get install -y ansible
19+
20+
ansible-galaxy collection install community.general
1421
}
1522

1623

0 commit comments

Comments
 (0)