Skip to content

Commit

Permalink
fix ansible typo
Browse files Browse the repository at this point in the history
  • Loading branch information
ldruschk committed Jun 9, 2024
1 parent 4561876 commit 9d3b96b
Showing 1 changed file with 16 additions and 15 deletions.
31 changes: 16 additions & 15 deletions ansible/roles/docker/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,24 @@
---
# https://docs.docker.com/engine/install/ubuntu/#install-using-the-repository
- name: Install docker
shell: |
set -e -o pipefail
apt-get update -y
apt-get install -y ca-certificates curl gnupg
install -m 0755 -d /etc/apt/keyrings
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | gpg --dearmor -o /etc/apt/keyrings/docker.gpg
chmod a+r /etc/apt/keyrings/docker.gpg
shell:
executable: /usr/bin/bash
cmd: |
set -e -o pipefail
apt-get update -y
apt-get install -y ca-certificates curl gnupg
install -m 0755 -d /etc/apt/keyrings
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | gpg --dearmor -o /etc/apt/keyrings/docker.gpg
chmod a+r /etc/apt/keyrings/docker.gpg
# Add the repository to Apt sources:
echo \
"deb [arch="$(dpkg --print-architecture)" signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu \
"$(. /etc/os-release && echo "$VERSION_CODENAME")" stable" | \
tee /etc/apt/sources.list.d/docker.list > /dev/null
apt-get -y update
# Add the repository to Apt sources:
echo \
"deb [arch="$(dpkg --print-architecture)" signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu \
"$(. /etc/os-release && echo "$VERSION_CODENAME")" stable" | \
tee /etc/apt/sources.list.d/docker.list > /dev/null
apt-get -y update
apt-get install -y docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
executable: /usr/bin/bash
apt-get install -y docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
- name: Copy daemon.json
copy:
Expand Down

0 comments on commit 9d3b96b

Please sign in to comment.