File tree 1 file changed +11
-4
lines changed
1 file changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -6,11 +6,18 @@ set -o pipefail
6
6
set -o xtrace
7
7
8
8
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
13
11
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
14
21
}
15
22
16
23
You can’t perform that action at this time.
0 commit comments