Skip to content

Commit

Permalink
Merge pull request #607 from rust-lang/fix-crater-install-awscli-from…
Browse files Browse the repository at this point in the history
…-snap

fix(crater): install awscli from snap
  • Loading branch information
MarcoIeni authored Nov 13, 2024
2 parents 00cc315 + 4c242be commit 5e26b96
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions ansible/roles/docker/tasks/install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,21 @@
apt:
name:
- docker.io
# Needed to pull images from ECR:
- awscli
state: present

# Install AWS to pull images from ECR
- name: Install aws (Ubuntu < 24)
apt:
name: awscli
state: present
when: ansible_distribution_version is version('24', '<')
- name: Install aws (Ubuntu >= 24)
community.general.snap:
name: aws-cli
classic: true
state: present
when: ansible_distribution_version is version('24', '>=')

- name: unmask docker.service
systemd:
name: docker.service
Expand Down

0 comments on commit 5e26b96

Please sign in to comment.