Skip to content

Commit 44e7591

Browse files
authored
Merge pull request #142 from ProblemSetters/change-ansible-provision-method
Change "ansible" provision method
2 parents ca314fc + 7666fc6 commit 44e7591

2 files changed

Lines changed: 7 additions & 4 deletions

File tree

framework/inventory/ansible.inventory

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,11 @@ blackbox.framework.inventory.ansible() {
3535
apt update
3636
fi
3737

38-
DEBIAN_FRONTEND=noninteractive apt install -y --no-install-recommends software-properties-common && {
39-
apt-add-repository -y ppa:ansible/ansible
40-
DEBIAN_FRONTEND=noninteractive apt install -y --no-install-recommends "$package_name" "${with_packages[@]}"
38+
DEBIAN_FRONTEND=noninteractive apt install -y --no-install-recommends software-properties-common gpg-agent wget && {
39+
wget -S --output-document="/tmp/ansible.deb" --no-verbose https://launchpad.net/~ansible/+archive/ubuntu/ansible/+files/ansible_10.7.0-1ppa~jammy_all.deb && {
40+
DEBIAN_FRONTEND=noninteractive apt install -y /tmp/ansible.deb "${with_packages[@]}" && {
41+
rm -f /tmp/ansible.deb
42+
}
43+
}
4144
}
4245
}

framework/inventory/awscli.inventory

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ blackbox.framework.inventory.awscli() {
3232
wget -S --output-document="/tmp/awscli.zip" --no-verbose https://awscli.amazonaws.com/awscli-exe-linux-x86_64-2.11.25.zip && {
3333
rm -rf /usr/local/aws-cli/
3434

35-
unzip /tmp/awscli.zip -d /tmp && {
35+
unzip -q /tmp/awscli.zip -d /tmp && {
3636
/tmp/aws/install
3737
rm -rf /tmp/aws*
3838
}

0 commit comments

Comments
 (0)