Skip to content

Commit

Permalink
fix(crater): install awscli from snap
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcoIeni committed Nov 13, 2024
1 parent 00cc315 commit 4c242be
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 4c242be

Please sign in to comment.